From ac8a7b68ea9bff6e329914e2fd4e93ed2ea862f0 Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Sun, 16 Sep 2018 22:23:24 +0200 Subject: [PATCH] More secure approach to docker login --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7007254..9b3f5d2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -26,7 +26,7 @@ jobs: docker load < /tmp/workspace/docker-backuppc.tar - run: command: - docker login -u ${DOCKER_USER} -p ${DOCKER_PASS} + echo "${DOCKER_PASS}" | docker login -u ${DOCKER_USER} --password-stdin - deploy: command: | if [ ${CIRCLE_BRANCH} = master ]; then DOCKER_TAG=latest; else DOCKER_TAG=${CIRCLE_TAG:-${CIRCLE_BRANCH}}; fi