Skip to content

Commit

Permalink
Be able to have doucle / in a branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Aug 2, 2018
1 parent 88057b4 commit 6cf87b6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions travis/publish-docker
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ do
docker push camptocamp/${IMAGE}:${TRAVIS_TAG}
elif [ "${TRAVIS_BRANCH}" != "master" ]
then
docker tag camptocamp/${IMAGE}:${MAJOR_VERSION} camptocamp/${IMAGE}:${TRAVIS_BRANCH/\//_}
docker push camptocamp/${IMAGE}:${TRAVIS_BRANCH/\//_}
BRANCH=${TRAVIS_BRANCH/\//_}
BRANCH=${BRANCH/\//_}
docker tag camptocamp/${IMAGE}:${MAJOR_VERSION} camptocamp/${IMAGE}:${BRANCH}
docker push camptocamp/${IMAGE}:${BRANCH}
else
docker push camptocamp/${IMAGE}:${MAJOR_VERSION}
fi
Expand Down

0 comments on commit 6cf87b6

Please sign in to comment.