@@ -27,35 +27,29 @@ jobs:
2727 GOFLAGS : -ldflags=-s -ldflags=-w
2828 KO_DOCKER_REPO : registry.local:5000/knative
2929 KOCACHE : ~/ko
30- SIGSTORE_SCAFFOLDING_RELEASE_VERSION : " v0.7.12 "
30+ SIGSTORE_SCAFFOLDING_RELEASE_VERSION : " v0.7.24 "
3131 TEKTON_PIPELINES_RELEASE : " https://storage.googleapis.com/tekton-releases/pipeline/previous/${{ inputs.pipelines-release }}/release.yaml"
3232 # Note that we do not include the v prefix here so we can use it in all
3333 # the places this is used.
34- TEKTON_CLI_RELEASE : " 0.30.0 "
34+ SKIP_INITIALIZE : true
3535
3636 steps :
3737 - name : Set up Go
3838 uses : actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
3939 with :
4040 go-version : 1.22.x
4141
42- - uses : ko-build/setup-ko@v0.9
42+ - uses : ko-build/setup-ko@d006021bd0c28d1ce33a07e7943d48b079944c8d # v0.9
4343 with :
4444 version : tip
4545
46- - name : Install tkn cli
47- run : |
48- curl -Lo ./tkn_${{ env.TEKTON_CLI_RELEASE }}_Linux_x86_64.tar.gz https://github.com/tektoncd/cli/releases/download/v${{ env.TEKTON_CLI_RELEASE }}/tkn_${{ env.TEKTON_CLI_RELEASE }}_Linux_x86_64.tar.gz
49- tar xvzf ./tkn_${{ env.TEKTON_CLI_RELEASE }}_Linux_x86_64.tar.gz tkn
50- chmod u+x ./tkn
51-
5246 - name : Check out our repo
5347 uses : actions/checkout@6d193bf28034eafb982f37bd894289fe649468fc # v4.1.7
5448 with :
5549 path : ./src/github.com/tektoncd/chains
5650
5751 - name : Install mirror, kind, knative + sigstore
58- uses : sigstore/scaffolding/actions/setup@main
52+ uses : sigstore/scaffolding/actions/setup@d40cf576f588d980142f0b8462c425d7b32f00b1 # v0.7.25
5953 with :
6054 k8s-version : ${{ inputs.k8s-version }}
6155 version : ${{ env.SIGSTORE_SCAFFOLDING_RELEASE_VERSION }}
@@ -72,12 +66,14 @@ jobs:
7266 # Restart so picks up the changes.
7367 kubectl -n tekton-pipelines delete po -l app=tekton-pipelines-controller
7468
75- - name : Install all the everythings
69+ - name : Run integration tests
7670 working-directory : ./src/github.com/tektoncd/chains
77- timeout-minutes : 10
7871 run : |
79- ko apply -BRf ./config/
72+ ./test/presubmit-tests.sh --integration-tests
8073
74+
75+ - name : Run tutorial taskrun
76+ run : |
8177 kubectl patch configmap/chains-config \
8278 --namespace tekton-chains \
8379 --type merge \
8884
8985 # TODO(vaikas): Better way to find when the chains has picked up
9086 # the changes
91- sleep 10
87+ sleep 20
9288
93- - name : Run tutorial taskrun
94- run : |
9589 kubectl create -f https://raw.githubusercontent.com/tektoncd/chains/main/examples/taskruns/task-output-image.yaml
9690
9791 # Sleep so the taskrun shows up.
10397 echo "Waiting for Chains to do it's thing"
10498 for i in {1..10}
10599 do
106- ./ tkn tr describe --last -o jsonpath="{.metadata.annotations.chains\.tekton\.dev/transparency}" > tektonentry
100+ tkn tr describe --last -o jsonpath="{.metadata.annotations.chains\.tekton\.dev/transparency}" > tektonentry
107101
108102 if [ -s ./tektonentry ]; then
109103 if grep --quiet rekor.rekor-system.svc ./tektonentry ; then
@@ -126,7 +120,7 @@ jobs:
126120
127121 - name : Collect diagnostics
128122 if : ${{ failure() }}
129- uses : chainguard-dev/actions/kind-diag@9c0be1ee0103db886d1887d114ec97f8766b7ef8 # main
123+ uses : chainguard-dev/actions/kind-diag@5363dd9eb48083bbf7674a4bbe62d71c3b230edd # v1.1.2
130124 with :
131125 cluster-resources : nodes
132- namespace-resources : pods,taskruns,jobs
126+ namespace-resources : pods,taskruns,jobs
0 commit comments