Skip to content

Commit af556f5

Browse files
authored
fix: circleci test on version within docker image
1 parent d843178 commit af556f5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.circleci/config.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,13 @@ jobs:
159159
&& e=0 && break || sleep 15
160160
done && [ "$e" -eq "0" ]
161161
162+
TARGET_VERSION="${CIRCLE_TAG:-$THISVERSION}"
163+
TARGET_VERSION="MRIQC v${TARGET_VERSION%+*}"
162164
DOCKER_VERSION=$( docker run --rm nipreps/mriqc:latest --version )
163-
echo "Target version: \"${CIRCLE_TAG:-$THISVERSION}\""
165+
DOCKER_VERSION="${DOCKER_VERSION%+*}"
166+
echo "Target version: \"${TARGET_VERSION}\""
164167
echo "Docker version: \"${DOCKER_VERSION}\""
165-
test "${CIRCLE_TAG:-$THISVERSION}" == "$DOCKER_VERSION"
168+
test "${TARGET_VERSION}" == "$DOCKER_VERSION"
166169
- run:
167170
name: Docker push to local registry
168171
no_output_timeout: 40m

0 commit comments

Comments
 (0)