diff --git a/templates/gitlab-ci-docker.yml b/templates/gitlab-ci-docker.yml index 0c70e51dce16d77c5867f897e1cd87347bef67da..f19d6cb4fd9629661248a8e38247fbe030606964 100644 --- a/templates/gitlab-ci-docker.yml +++ b/templates/gitlab-ci-docker.yml @@ -518,8 +518,8 @@ docker-kaniko-build: - run_build_kaniko "$DOCKER_SNAPSHOT_IMAGE" --digest-file .img-digest.txt --build-arg http_proxy="$http_proxy" --build-arg https_proxy="$https_proxy" --build-arg no_proxy="$no_proxy" # push docker_image in dotenv file - docker_digest=$(cat .img-digest.txt) - - docker_repository=${DOCKER_SNAPSHOT_IMAGE%%:*} - - docker_tag=${DOCKER_SNAPSHOT_IMAGE#*:} + - docker_repository=${DOCKER_SNAPSHOT_IMAGE%:*} + - docker_tag=${DOCKER_SNAPSHOT_IMAGE##*:} - echo "docker_image=$DOCKER_SNAPSHOT_IMAGE" > docker.env - echo "docker_image_digest=$docker_repository@$docker_digest" >> docker.env - echo "docker_repository=$docker_repository" >> docker.env