Skip to content

Commit

Permalink
Fix branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-mo committed Mar 24, 2020
1 parent 138ae70 commit 7287fa0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ci/travis/build-autoscaler-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ if [[ "$TRAVIS" == "true" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then

# We have a branch build, e.g. release/v0.7.0
if [[ "$TRAVIS_BRANCH" != "master" ]]; then
docker tag rayproject/autoscaler:$commit_sha rayproject/autoscaler:$TRAVIS_BRANCH
docker push rayproject/autoscaler:$TRAVIS_BRANCH
# Replace / in branch name to - so it is legal tag name
normalized_branch_name=$(echo $TRAVIS_BRANCH | sed -e "s/\//-/")
docker tag rayproject/autoscaler:$commit_sha rayproject/autoscaler:$normalized_branch_name
docker push rayproject/autoscaler:$normalized_branch_name
else
docker tag rayproject/autoscaler:$commit_sha rayproject/autoscaler:latest
docker push rayproject/autoscaler:latest
Expand Down

0 comments on commit 7287fa0

Please sign in to comment.