gitlab-ci: use more secure token passing

This commit is contained in:
Hans-Christoph Steiner 2019-01-03 22:04:13 +01:00
parent f9e5f066e3
commit 216ef68d9b
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ docker:
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
script:
- docker build -t $IMAGE .
- docker push $IMAGE