Skip to content

Commit

Permalink
travis: release on tags
Browse files Browse the repository at this point in the history
Signed-off-by: Harris Tzovanakis <me@drjova.com>
  • Loading branch information
drjova committed Jan 24, 2020
1 parent 5dff23b commit 93d0232
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
19 changes: 12 additions & 7 deletions .travis.yml
Expand Up @@ -88,10 +88,15 @@ after_script:
- coveralls

deploy:
skip_cleanup: true
provider: script
script:
- ./deploy-docker-image.sh
on:
branch: master
condition: $SUITE = integration
- skip_cleanup: true
provider: script
script: ./deploy-docker-image.sh
on:
branch: master
condition: $SUITE = integration
- skip_cleanup: true
provider: script
script: ./deploy-docker-image.sh
on:
tags: true
condition: $SUITE = integration
2 changes: 1 addition & 1 deletion deploy-docker-image.sh
Expand Up @@ -16,7 +16,7 @@ login() {
buildPush() {
IMAGE="${1}"
DOCKERFILE="${2:-Dockerfile}"
TAG="$(git describe --always --tags)"
TAG="${TRAVIS_TAG:-$(git describe --always --tags)}"


echo "Building docker image"
Expand Down

0 comments on commit 93d0232

Please sign in to comment.