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

Commit 076e8fc

Browse files
- removed the line that pushes for any commit
- 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.
1 parent a00e950 commit 076e8fc

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)