From 9355d48cc85727c8282c49a16046a8d4feb233e7 Mon Sep 17 00:00:00 2001 From: David Hiendl Date: Tue, 18 Oct 2022 17:40:08 +0200 Subject: [PATCH] kaniko image build: fix commit tags having double -- characters --- gitlab/ContainerBuildKaniko.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitlab/ContainerBuildKaniko.yml b/gitlab/ContainerBuildKaniko.yml index aa3e52c..a75c8df 100644 --- a/gitlab/ContainerBuildKaniko.yml +++ b/gitlab/ContainerBuildKaniko.yml @@ -29,7 +29,7 @@ # default tag based on commit - | if [[ "$TAG_COMMIT_ENABLE" == "true" ]]; then - IMAGE_DESTS="$IMAGE_DESTS --destination $CI_REGISTRY_IMAGE:$TAG_COMMIT_PREFIX-$CI_COMMIT_SHA" + IMAGE_DESTS="$IMAGE_DESTS --destination $CI_REGISTRY_IMAGE:${TAG_COMMIT_PREFIX}${CI_COMMIT_SHA}" fi # add tag for reference if available using slug