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 #40 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
nustiueudinastea authored Jan 19, 2017
2 parents e11967d + 06a2d25 commit 85d49de
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 85d49de

Please sign in to comment.