Seems like before_script in publish was overwriting cargo on pages job, so i just move it into the script itself

This commit is contained in:
Marcel Märtens 2022-04-24 19:48:27 +02:00
parent 731fd1021d
commit 0941dfffae

View File

@ -6,8 +6,6 @@
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when: on_success when: on_success
- when: never - when: never
before_script:
- source "$CI_PROJECT_DIR/.gitlab/scripts/util.sh"
docker: docker:
extends: .publish extends: .publish
@ -25,6 +23,7 @@ docker:
- export container=docker - export container=docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json - echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
- | - |
source "$CI_PROJECT_DIR/.gitlab/scripts/util.sh"
publishdockertag PUBLISH_DOCKER_TAG publishdockertag PUBLISH_DOCKER_TAG
if [ "${PUBLISH_DOCKER_TAG}" != "" ]; then if [ "${PUBLISH_DOCKER_TAG}" != "" ]; then
/kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/server-cli/Dockerfile --destination "${CI_REGISTRY_IMAGE}/server-cli:${PUBLISH_DOCKER_TAG}" /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/server-cli/Dockerfile --destination "${CI_REGISTRY_IMAGE}/server-cli:${PUBLISH_DOCKER_TAG}"