From cbf671e1b113cb9cd1e98a22bcce6741d0382962 Mon Sep 17 00:00:00 2001 From: Karina Schulz Date: Thu, 8 Jul 2021 15:59:54 +0200 Subject: [PATCH] fix(container-publish-template): fix push template --- container-publish.gitlab-ci.yml | 2 +- documentation/chapters/templates/publish-image.adoc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/container-publish.gitlab-ci.yml b/container-publish.gitlab-ci.yml index 1f58db5..c7ad8fb 100644 --- a/container-publish.gitlab-ci.yml +++ b/container-publish.gitlab-ci.yml @@ -37,7 +37,7 @@ CONTEXT_LOCATION: $CI_PROJECT_DIR before_script: - export PARSED_VERSION=$(echo $CI_COMMIT_TAG | sed -r 's/\+/_/g') # Replace + sign since this is not valid in a docker tag - - export IMAGE_NAME=$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG + - export IMAGE_NAME=$CI_REGISTRY_IMAGE:$PARSED_VERSION script: - mkdir -p /kaniko/.docker - echo "{\"auths\":{\"$DOCKER_REGISTRY\":{\"username\":\"$DOCKER_REGISTRY_USER\",\"password\":\"$DOCKER_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json diff --git a/documentation/chapters/templates/publish-image.adoc b/documentation/chapters/templates/publish-image.adoc index 5db62b1..f5e6394 100644 --- a/documentation/chapters/templates/publish-image.adoc +++ b/documentation/chapters/templates/publish-image.adoc @@ -14,5 +14,5 @@ Falls das Projekt aus mehreren Poms besteht, kann `bevor_script:` benutzt werden .publish-image-jib-template ---- -include::{sourcedir}/publish-image.yml[] +include::{sourcedir}/container-publish.gitlab-ci.yml[] ---- \ No newline at end of file