Gitlab/BuildWithKaniko: fixed variable names

This commit is contained in:
David Hiendl 2022-10-10 12:12:48 +02:00
parent a9717e8231
commit d37a74c465

View File

@ -27,13 +27,13 @@
# default tag based on commit
- |
if [[ "$IMAGE_COMMIT_ENABLE" == "true" ]]; then
IMAGE_DESTS="--destination $CI_REGISTRY_IMAGE:$IMAGE_COMMIT_PREFIX-$CI_COMMIT_SHA"
if [[ "$TAG_COMMIT_ENABLE" == "true" ]]; then
IMAGE_DESTS="$IMAGE_DESTS --destination $CI_REGISTRY_IMAGE:$TAG_COMMIT_PREFIX-$CI_COMMIT_SHA"
fi
# add tag for reference if available
- |
if [[ "$IMAGE_REF_SLUG_ENABLE" == "true" ]] && [[ ! -z $CI_COMMIT_REF_NAME ]]; then
if [[ "$TAG_REF_SLUG_ENABLE" == "true" ]] && [[ ! -z $CI_COMMIT_REF_NAME ]]; then
IMAGE_DESTS="$IMAGE_DESTS --destination $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
fi