Merge branch 'Fix-Templates' into 'master'

fix(container-publish-template): fix push template

See merge request gilden/ci/gitlab-ci-templates!10
This commit is contained in:
Marcel Feix 2021-07-08 14:58:59 +00:00
commit e146ca7a1e
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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[]
----