File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -149,8 +149,12 @@ jobs:
149149 password : ${{ secrets.oci-registry-password || github.token }}
150150
151151 - name : Install container-structure-test
152+ env :
153+ CST_VERSION : " 1.22.0"
154+ CST_CHECKSUM : " 57cde1abc7a9dda034b173c0812f537c20b8734c1efca069cc2570b5c596ad0d"
152155 run : |
153- curl -LO https://github.com/GoogleContainerTools/container-structure-test/releases/latest/download/container-structure-test-linux-amd64
156+ curl -LO "https://github.com/GoogleContainerTools/container-structure-test/releases/download/v${CST_VERSION}/container-structure-test-linux-amd64"
157+ echo "${CST_CHECKSUM} container-structure-test-linux-amd64" | sha256sum -c -
154158 chmod +x container-structure-test-linux-amd64
155159 sudo mv container-structure-test-linux-amd64 /usr/local/bin/container-structure-test
156160
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ define run_tests
6565 docker run --rm \
6666 -v /var/run/docker.sock:/var/run/docker.sock \
6767 -v "$$IMAGE_DIR:/workspace" \
68- gcr .io/gcp-runtimes /container-structure-test:latest \
68+ ghcr .io/googlecontainertools /container-structure-test:v1.22.0 \
6969 test --image "$$IMAGE_NAME:test" --config /workspace/container-structure-test.yaml
7070endef
7171
You can’t perform that action at this time.
0 commit comments