@@ -27,15 +27,20 @@ jobs:
2727 GOFLAGS : -ldflags=-s -ldflags=-w
2828 KO_DOCKER_REPO : registry.local:5000/knative
2929 KOCACHE : ~/ko
30- SIGSTORE_SCAFFOLDING_RELEASE_VERSION : " v0.6.6 "
31- TEKTON_PIPELINES_RELEASE : " https://storage.googleapis. com/tekton-releases /pipeline/previous /${{ inputs.pipelines-release }}/release.yaml"
30+ SIGSTORE_SCAFFOLDING_RELEASE_VERSION : " v0.7.2 "
31+ TEKTON_PIPELINES_RELEASE : " https://github. com/tektoncd /pipeline/releases/download /${{ 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.
3434 TEKTON_CLI_RELEASE : " 0.30.0"
3535
3636 steps :
37+ - name : Check out our repo
38+ uses : actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
39+ with :
40+ path : ./src/github.com/tektoncd/chains
41+
3742 # https://github.com/mvdan/github-actions-golang#how-do-i-set-up-caching-between-builds
38- - uses : actions/cache@v2
43+ - uses : actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
3944 with :
4045 # In order:
4146 # * Module download cache
@@ -48,43 +53,45 @@ jobs:
4853 restore-keys : |
4954 ${{ runner.os }}-go-
5055
51- - name : Set up Go
52- uses : actions/setup-go@v2
56+ - uses : actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
5357 with :
54- go-version : 1.20.x
58+ go-version-file : " src/github.com/tektoncd/chains/go.mod "
5559
56- - uses : imjasonh/setup-ko@v0.6
57- with :
58- version : tip
60+ - uses : ko-build/setup-ko@d006021bd0c28d1ce33a07e7943d48b079944c8d # v0.9
5961
6062 - name : Install tkn cli
6163 run : |
6264 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
6365 tar xvzf ./tkn_${{ env.TEKTON_CLI_RELEASE }}_Linux_x86_64.tar.gz tkn
6466 chmod u+x ./tkn
6567
66- - name : Check out our repo
67- uses : actions/checkout@v2
68- with :
69- path : ./src/github.com/tektoncd/chains
68+ - name : Setup Docker daemon config
69+ run : |
70+ sudo mkdir -p /etc/docker
71+ if [ ! -f /etc/docker/daemon.json ]; then
72+ echo '{}' | sudo tee /etc/docker/daemon.json
73+ fi
7074
7175 - name : Install mirror, kind, knative + sigstore
72- uses : sigstore/scaffolding/actions/setup@main
76+ uses : sigstore/scaffolding/actions/setup@039e0ece31c5fc9fe0466d2f7b289ed643b88fdb # v0.7.2
7377 with :
7478 k8s-version : ${{ inputs.k8s-version }}
7579 version : ${{ env.SIGSTORE_SCAFFOLDING_RELEASE_VERSION }}
7680 knative-version : 1.9.0
7781
7882 - name : Install Tekton pipelines
7983 run : |
80- while ! kubectl apply --filename ${{ env.TEKTON_PIPELINES_RELEASE }}
81- do
82- echo "waiting for tekton pipelines to get installed"
83- sleep 2
84- done
85-
86- # Restart so picks up the changes.
87- kubectl -n tekton-pipelines delete po -l app=tekton-pipelines-controller
84+ kubectl apply --filename ${{ env.TEKTON_PIPELINES_RELEASE }}
85+
86+ # Wait for deployments to be available
87+ kubectl wait --for=condition=available --timeout=5m deployment/tekton-pipelines-controller -n tekton-pipelines
88+ kubectl wait --for=condition=available --timeout=5m deployment/tekton-pipelines-webhook -n tekton-pipelines
89+
90+ # Restart controller so it picks up the changes
91+ kubectl -n tekton-pipelines rollout restart deployment/tekton-pipelines-controller
92+
93+ # Wait for controller to be ready after restart
94+ kubectl -n tekton-pipelines rollout status deployment/tekton-pipelines-controller --timeout=5m
8895
8996 - name : Install all the everythings
9097 working-directory : ./src/github.com/tektoncd/chains
@@ -140,7 +147,7 @@ jobs:
140147
141148 - name : Collect diagnostics
142149 if : ${{ failure() }}
143- uses : chainguard-dev/actions/kind-diag@84c993eaf02da1c325854fb272a4df9184bd80fc # main
150+ uses : chainguard-dev/actions/kind-diag@17095df6250b18f9cc2c2e45b179d9a641668d8c # main
144151 with :
145152 cluster-resources : nodes
146153 namespace-resources : pods,taskruns,jobs
0 commit comments