From a02a41f70636f4c8a91e04638136ecee9f47cbc1 Mon Sep 17 00:00:00 2001 From: dannyrb Date: Tue, 21 May 2019 14:12:47 -0400 Subject: [PATCH] fix: Drop the tilde; may not be part of the workspace we're preserving --- .circleci/config.yml | 7 ++++--- .releaserc | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5c3156106..9472eb9a3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -103,7 +103,8 @@ jobs: command: | # # - if [[ ! -e ~/tmp/updated-version.txt ]]; then + cat tmp/updated-version.txt + if [[ ! -e tmp/updated-version.txt ]]; then exit 1 fi - setup_remote_docker: @@ -111,9 +112,9 @@ jobs: - run: name: Build and push Docker image command: | - docker build -t ohif/$IMAGE_NAME:{{ checksum "~/tmp/updated-version.txt" }}.${CIRCLE_BUILD_NUM} ohif/$IMAGE_NAME:latest . + docker build -t ohif/$IMAGE_NAME:{{ checksum "tmp/updated-version.txt" }}.${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.txt" }}.${CIRCLE_BUILD_NUM} + docker push ohif/$IMAGE_NAME:{{ checksum "tmp/updated-version.txt" }}.${CIRCLE_BUILD_NUM} docker push ohif/$IMAGE_NAME:latest workflows: diff --git a/.releaserc b/.releaserc index b462f33c7..88ee1fae7 100644 --- a/.releaserc +++ b/.releaserc @@ -7,7 +7,7 @@ [ "@semantic-release/exec", { - "publishCmd": "mkdir ~/tmp && echo ${nextRelease.version} > ~/tmp/updated-version.txt" + "publishCmd": "mkdir tmp && echo ${nextRelease.version} > tmp/updated-version.txt" } ] ]