From 0fc22f97dd5ac41ff6d7071ce4c63cbe44ba8e51 Mon Sep 17 00:00:00 2001 From: dannyrb Date: Tue, 21 May 2019 13:33:50 -0400 Subject: [PATCH] fix: Try to tag docker image w/ correct/new version number --- .circleci/config.yml | 6 +++--- .releaserc | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ac24244a1..3f4760124 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -102,7 +102,7 @@ jobs: command: | # # - if [[ ! -e /tmp/updated-version ]]; then + if [[ ! -e ~/tmp/updated-version ]]; then exit 1 fi - setup_remote_docker: @@ -110,9 +110,9 @@ jobs: - run: name: Build and push Docker image command: | - docker build -t ohif/$IMAGE_NAME:{{ checksum "/tmp/updated-version" }}.${CIRCLE_BUILD_NUM} ohif/$IMAGE_NAME:latest . + docker build -t ohif/$IMAGE_NAME:{{ checksum "~/tmp/updated-version" }}.${CIRCLE_BUILD_NUM} ohif/$IMAGE_NAME:latest . echo $DOCKER_PWD | docker login -u $DOCKER_LOGIN --password-stdin - docker push ohif/$IMAGE_NAME:{{ checksum "/tmp/updated-version" }}.${CIRCLE_BUILD_NUM} + docker push ohif/$IMAGE_NAME:{{ checksum "~/tmp/updated-version" }}.${CIRCLE_BUILD_NUM} docker push ohif/$IMAGE_NAME:latest workflows: diff --git a/.releaserc b/.releaserc index 075e85fb5..bf0d182b3 100644 --- a/.releaserc +++ b/.releaserc @@ -7,7 +7,7 @@ [ "@semantic-release/exec", { - "publishCmd": "echo ${nextRelease.version} > /tmp/updated-version" + "publishCmd": "echo ${nextRelease.version} > ~/tmp/updated-version" } ] ]