Skip to content

Commit

Permalink
[travis] build git tags and also push builder image
Browse files Browse the repository at this point in the history
  • Loading branch information
mikz committed Mar 22, 2017
1 parent d9affb7 commit 66ea2dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ script:
- make test-doc
- make danger
after_success:
- if [ "${TRAVIS_BRANCH}" = "master" ] && [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
- if [ "$TRAVIS_BRANCH" = "master" -a "${TRAVIS_PULL_REQUEST}" = "false" ] || [ -n "${TRAVIS_TAG}" ]; then
docker login -u="${DOCKER_USERNAME}" -p="${DOCKER_PASSWORD}" quay.io;
make runtime-image;
make push;
make runtime-image push IMAGE_NAME="apicast:${TRAVIS_TAG:-${TRAVIS_BRANCH}}";
make builder-image push IMAGE_NAME="apicast:${TRAVIS_TAG:-${TRAVIS_BRANCH}}-builder";
fi

0 comments on commit 66ea2dc

Please sign in to comment.