From 851ec0be6ad36de9d78009eaa1b552613f973344 Mon Sep 17 00:00:00 2001 From: dannyrb Date: Mon, 20 May 2019 21:26:39 -0400 Subject: [PATCH] Add a docker_publish job --- .circleci/config.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 14d013f70..2dc8a290b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -72,6 +72,20 @@ jobs: name: Publish using Semantic Release command: npx semantic-release --debug --dry-run + docker_publish: + <<: *defaults + steps: + - attach_workspace: + at: ~/repo + - setup_remote_docker: + docker_layer_caching: true + - run: + name: Build and push Docker image + command: | + docker build -t ohif/$IMAGE_NAME:$TAG . + echo $DOCKER_PWD | docker login -u $DOCKER_LOGIN --password-stdin + docker push ohif/$IMAGE_NAME:$TAG + docs_publish: <<: *defaults steps: