diff options
author | 2018-09-18 00:22:37 +0200 | |
---|---|---|
committer | 2018-09-18 00:22:37 +0200 | |
commit | 84a3e46b87cc7afd6e9753630df5d39f8f2f9b46 (patch) | |
tree | ae67133f2072990f0662a71f2c41d6d7ea950d67 /.gitlab-ci.yml | |
parent | Use GitLab registry for passing images. (diff) |
Make docker less insecure.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e0af0d8a..710776c1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -29,7 +29,7 @@ build-alpine-3.7: stage: build image: docker:dind before_script: - - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY + - echo "$CI_JOB_TOKEN" | docker login -u gitlab-ci-token --password-stdin $CI_REGISTRY script: - > docker build @@ -43,7 +43,7 @@ build-alpine-3.6: stage: build image: docker:dind before_script: - - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY + - echo "$CI_JOB_TOKEN" | docker login -u gitlab-ci-token --password-stdin $CI_REGISTRY script: - > docker build @@ -57,7 +57,7 @@ build-stretch-3.7: stage: build image: docker:dind before_script: - - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY + - echo "$CI_JOB_TOKEN" | docker login -u gitlab-ci-token --password-stdin $CI_REGISTRY script: - > docker build @@ -71,7 +71,7 @@ build-stretch-3.6: stage: build image: docker:dind before_script: - - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY + - echo "$CI_JOB_TOKEN" | docker login -u gitlab-ci-token --password-stdin $CI_REGISTRY script: - > docker build |