Commit 129ef150 authored by Vishal Lal's avatar Vishal Lal Committed by GitHub

Merge pull request #21 from microservices-demo/CD-style-docker-push

Push docker images in CD style
parents a00e9508 076e8fc3
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment