Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Merge pull request #38 from microservices-demo/CD-style-docker-push
Browse files Browse the repository at this point in the history
Push docker images in CD style
  • Loading branch information
vlal authored Jan 18, 2017
2 parents d3c94be + 4d43616 commit 59fc6e4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions scripts/push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,9 @@ tag_and_push_all() {
done;
}

# Always push commit
tag_and_push_all $COMMIT

# Push snapshot when in master
if [ "$TRAVIS_BRANCH" == "master" ]; then
tag_and_push_all snapshot
if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
tag_and_push_all master-${COMMIT:0:8}
fi;

# Push tag and latest when tagged
Expand Down

0 comments on commit 59fc6e4

Please sign in to comment.