From e27e3ec7a011978df085143f6ac45517b64c5126 Mon Sep 17 00:00:00 2001 From: tillias Date: Thu, 29 Oct 2020 19:31:55 +0100 Subject: [PATCH] circle ci -> docker hub integration #75 --- .circleci/config.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1d3f0b8..b85c213 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -58,11 +58,13 @@ jobs: - when: condition: equal: [ dev, << pipeline.git.branch >> ] - - run: | - docker build -t tillias/microcatalog . - docker tag tillias/microcatalog tillias/microcatalog:$DOCKER_TAG - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin - docker push tillias/microcatalog + - run: + name: Docker push + command: | + docker build -t tillias/microcatalog . + docker tag tillias/microcatalog tillias/microcatalog:$DOCKER_TAG + echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin + docker push tillias/microcatalog - when: condition: equal: [ master, << pipeline.git.branch >> ]