From e8d882cc13791187692ee20df25c30995ad16ffb Mon Sep 17 00:00:00 2001 From: Andreas Hartmann Date: Tue, 31 Oct 2023 07:52:30 +0000 Subject: [PATCH] ci: Use commit ref slug instead of branch name as default container tag name for uploading, because branch names can includes characters that aren't valid for tags (such as '/'). Signed-off-by: Andreas Hartmann --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7d2c473..1d63bb0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -36,7 +36,7 @@ build: script: # N/B: There could be more than one merge-request open with this branch's HEAD - | - IMAGE_TAG="${CI_COMMIT_BRANCH}"; + IMAGE_TAG="${CI_COMMIT_REF_SLUG}"; if [[ -n "$CI_COMMIT_TAG" ]]; then IMAGE_TAG="${CI_COMMIT_TAG}"; elif [[ -n "$CI_OPEN_MERGE_REQUESTS" ]]; then