fix: Drop the tilde; may not be part of the workspace we're preserving
This commit is contained in:
parent
caf989f77c
commit
a02a41f706
@ -103,7 +103,8 @@ jobs:
|
|||||||
command: |
|
command: |
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
if [[ ! -e ~/tmp/updated-version.txt ]]; then
|
cat tmp/updated-version.txt
|
||||||
|
if [[ ! -e tmp/updated-version.txt ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
- setup_remote_docker:
|
- setup_remote_docker:
|
||||||
@ -111,9 +112,9 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Build and push Docker image
|
name: Build and push Docker image
|
||||||
command: |
|
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
|
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
|
docker push ohif/$IMAGE_NAME:latest
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
[
|
[
|
||||||
"@semantic-release/exec",
|
"@semantic-release/exec",
|
||||||
{
|
{
|
||||||
"publishCmd": "mkdir ~/tmp && echo ${nextRelease.version} > ~/tmp/updated-version.txt"
|
"publishCmd": "mkdir tmp && echo ${nextRelease.version} > tmp/updated-version.txt"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user