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

Commit 129ef15

Browse files
authored
Merge pull request #21 from microservices-demo/CD-style-docker-push
Push docker images in CD style
2 parents a00e950 + 076e8fc commit 129ef15

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

scripts/push.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,9 @@ tag_and_push_all() {
4040
done;
4141
}
4242

43-
# Always push commit
44-
tag_and_push_all $COMMIT
45-
4643
# Push snapshot when in master
47-
if [ "$TRAVIS_BRANCH" == "master" ]; then
48-
tag_and_push_all snapshot
44+
if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
45+
tag_and_push_all master-${COMMIT:0:8}
4946
fi;
5047

5148
# Push tag and latest when tagged

0 commit comments

Comments
 (0)