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

Commit

Permalink
- removed the line that pushes for any commit
Browse files Browse the repository at this point in the history
- changed Docker tag for pushes from the master branch. The pushed
  Docker tag now contains tag of form: "master-<8 char commit SHA>"
- the tag pusing remains the same.

Related to microservices-demo/microservices-demo#553
  • Loading branch information
nustiueudinastea committed Jan 18, 2017
1 parent d3c94be commit 4d43616
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 4d43616

Please sign in to comment.