gitlab-ci: securely pass CI_BUILD_TOKEN in to docker login

This commit is contained in:
Hans-Christoph Steiner 2018-03-27 10:52:51 +02:00
parent 51ec41783b
commit a3209ce219

View file

@ -12,7 +12,7 @@ variables:
RELEASE_IMAGE: registry.gitlab.com/$CI_PROJECT_NAMESPACE/${CI_PROJECT_NAME}:latest
before_script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com
- echo $CI_BUILD_TOKEN | docker login -u gitlab-ci-token --password-stdin registry.gitlab.com
build:
stage: build