From 6b4b32e0f234cc073340b177fcd63ff850fa8954 Mon Sep 17 00:00:00 2001 From: Adrien Ferrand Date: Sun, 16 Sep 2018 22:19:47 +0200 Subject: [PATCH] Login to docker --- .circleci/config.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 72ff6f1..7007254 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,7 +7,7 @@ jobs: - run: command: | docker pull adferrand/backuppc || true - docker build -t --cache-from adferrand/backuppc adferrand/backuppc . + docker build --cache-from adferrand/backuppc -t adferrand/backuppc . - run: command: | mkdir -p workspace @@ -24,6 +24,9 @@ jobs: - run: command: docker load < /tmp/workspace/docker-backuppc.tar + - run: + command: + docker login -u ${DOCKER_USER} -p ${DOCKER_PASS} - deploy: command: | if [ ${CIRCLE_BRANCH} = master ]; then DOCKER_TAG=latest; else DOCKER_TAG=${CIRCLE_TAG:-${CIRCLE_BRANCH}}; fi