Update .gitlab-ci.yml

This commit is contained in:
Sebastian Hugentobler 2022-02-14 08:51:24 +00:00
parent 544170d181
commit eed66de7e2

View File

@ -11,6 +11,7 @@ build:
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$(printf "%s:%s" "$CI_REGISTRY_USER" "$CI_REGISTRY_PASSWORD" | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json - echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$(printf "%s:%s" "$CI_REGISTRY_USER" "$CI_REGISTRY_PASSWORD" | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json
- >- - >-
/kaniko/executor /kaniko/executor
--cleanup
--context "$CI_PROJECT_DIR" --context "$CI_PROJECT_DIR"
--dockerfile "$CI_PROJECT_DIR/Dockerfile" --dockerfile "$CI_PROJECT_DIR/Dockerfile"
--destination "$CONTAINER_NAME:$CI_COMMIT_SHA" --destination "$CONTAINER_NAME:$CI_COMMIT_SHA"