File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ docker push "$VESPA_PREVIEW_CONTAINER_URI"
3131
3232echo " Signing container image..."
3333IMAGE_SHA256=$( crane digest " $VESPA_PREVIEW_CONTAINER_URI " )
34+ if [[ -z " ${IMAGE_SHA256} " ]]; then
35+ echo " Failed getting IMAGE_SHA256 from ${VESPA_PREVIEW_CONTAINER_URI} "
36+ exit 1
37+ fi
3438cosign sign -y --oidc-provider=buildkite-agent " ${VESPA_PREVIEW_CONTAINER_URI} @${IMAGE_SHA256} "
3539
3640echo " Setting Buildkite metadata for Vespa container..."
@@ -42,9 +46,8 @@ SYSTEMTEST_PREVIEW_CONTAINER_URI=docker.io/vespaengine/vespa-systemtest-preview-
4246echo " Pushing container: ${SYSTEMTEST_PREVIEW_CONTAINER_URI} "
4347docker push " $SYSTEMTEST_PREVIEW_CONTAINER_URI "
4448IMAGE_SHA256=$( crane digest " $SYSTEMTEST_PREVIEW_CONTAINER_URI " )
45-
46- if [ " ${IMAGE_SHA256} " = " " ]; then
47- echo " Failed getting IMAGE_SHA256 from $SYSTEMTEST_PREVIEW_CONTAINER_URI "
49+ if [[ -z " ${IMAGE_SHA256} " ]]; then
50+ echo " Failed getting IMAGE_SHA256 from ${SYSTEMTEST_PREVIEW_CONTAINER_URI} "
4851 exit 1
4952fi
5053
You can’t perform that action at this time.
0 commit comments