Skip to content

Commit

Permalink
Support tagged release deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
munnerz committed Aug 14, 2017
1 parent 8de15fa commit 954f535
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
language: generic
sudo: required

services:
- docker

script:
- make verify build test images

deploy:
provider: script
script: build/deploy.sh
skip_cleanup: true
on:
repo: munnerz/keepalived-cloud-provider
tags: true
branch: master
9 changes: 7 additions & 2 deletions build/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,10 @@ export REGISTRY=quay.io/munnerz/

docker login -e="${QUAY_EMAIL}" -u "${QUAY_USERNAME}" -p "${QUAY_PASSWORD}" quay.io

echo "Pushing images with sha tag."
make push
if [ "${TRAVIS_TAG}" = "" ]; then
echo "Pushing images with sha tag."
make push
else
echo "Pushing images with release tag."
make push MUTABLE_TAG=latest VERSION="${TRAVIS_TAG}"
fi

0 comments on commit 954f535

Please sign in to comment.