Skip to content

Commit 7287fa0

Browse files
committed
Fix branch name
1 parent 138ae70 commit 7287fa0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ci/travis/build-autoscaler-images.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ if [[ "$TRAVIS" == "true" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then
2626

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

0 commit comments

Comments
 (0)