From 84a3e46b87cc7afd6e9753630df5d39f8f2f9b46 Mon Sep 17 00:00:00 2001 From: Johannes Christ Date: Tue, 18 Sep 2018 00:22:37 +0200 Subject: Make docker less insecure. --- .gitlab-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to '.gitlab-ci.yml') 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 -- cgit v1.2.3