Skip to content

Commit 824a35e

Browse files
committed
Updated Image/Version Check
1 parent b661305 commit 824a35e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.common-ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,8 @@ stages:
8282
OUT_IMAGE_VERSION: "${CI_COMMIT_SHORT_SHA}"
8383
before_script:
8484
- !reference [.regctl-setup, before_script]
85-
# We ensure that the OUT_IMAGE_VERSION is set
86-
- 'echo Version: ${OUT_IMAGE_VERSION} ; [[ -n "${OUT_IMAGE_VERSION}" ]] || exit 1'
87-
- 'echo Version: ${OUT_IMAGE_NAME} ; [[ -n "${OUT_IMAGE_NAME}" ]] || exit 1'
85+
# We ensure that the OUT_IMAGE_VERSION and OUT_IMAGE_NAME is set
86+
- 'echo "Version: ${OUT_IMAGE_VERSION}, Image: ${OUT_IMAGE_NAME}" ; [[ -n "${OUT_IMAGE_VERSION}" && -n "${OUT_IMAGE_NAME}" ]] || exit 1'
8887
# In the case where we are deploying a different version to the CI_COMMIT_SHA, we
8988
# need to tag the image.
9089
# Note: a leading 'v' is stripped from the version if present

0 commit comments

Comments
 (0)