Skip to content

Commit c044162

Browse files
committed
only push new docker image on release
1 parent 682c494 commit c044162

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build/travis-deploy.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ if [ "${TRAVIS_EVENT_TYPE}" = "pull_request" ]; then
1414
exit 0
1515
fi
1616

17+
# Release image tag format: v0.0.0 and latest
18+
if [ -n "$TRAVIS_TAG" ]; then
19+
echo "Running Release build on Travis"
20+
make push-release RELEASE_TAG="$TRAVIS_TAG"
21+
exit 0
22+
fi
23+
1724
# Push image tag format: COMMIT
1825
echo "Running push build on Travis"
1926
make push

0 commit comments

Comments
 (0)