Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
cld
S
systems
sock-shop
carts
Commits
129ef150
Commit
129ef150
authored
Jan 18, 2017
by
Vishal Lal
Committed by
GitHub
Jan 18, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #21 from microservices-demo/CD-style-docker-push
Push docker images in CD style
parents
a00e9508
076e8fc3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
scripts/push.sh
scripts/push.sh
+2
-5
No files found.
scripts/push.sh
View file @
129ef150
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment