Skip to content

Commit

Permalink
Ignore rc tags in get_latest_tag and only deploy if push_to_docker sc…
Browse files Browse the repository at this point in the history
…ript succeeded.
  • Loading branch information
cscatolini authored and Camila de Andrade Scatolini committed Feb 11, 2019
1 parent 590ca3e commit 6a9746d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@ script:
- make test
after_success:
- "$HOME/gopath/bin/goveralls -coverprofile ./_build/test-coverage-all.out -service=travis-ci"
- "./push_to_docker.sh"
- "./success_webhook.sh"
- "./push_to_docker.sh && ./success_webhook.sh"
3 changes: 3 additions & 0 deletions get_latest_tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ def main():
def get_tag_value(tag):
if "latest" in tag:
return 0
for t in tag:
if "rc" in t:
return 0

while len(tag) < 4:
tag.append('0')
Expand Down

0 comments on commit 6a9746d

Please sign in to comment.