Skip to content

Commit d4bea4c

Browse files
authored
Merge pull request #96 from smoya/chore/fixDockerBuild
chore: fix docker tagging failing when branch contains slash
2 parents fa096d6 + 9fa79e1 commit d4bea4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ notifications:
2424
script:
2525
- go build .
2626
- go test ./...
27-
- export TAG=`if [[ $TRAVIS_PULL_REQUEST == "false" ]] && [[ $TRAVIS_BRANCH == "master" ]]; then echo "latest"; else echo "${TRAVIS_PULL_REQUEST_BRANCH:-${TRAVIS_BRANCH}}"; fi`
27+
- export TAG=`if [[ $TRAVIS_PULL_REQUEST == "false" ]] && [[ $TRAVIS_BRANCH == "master" ]]; then echo "latest"; else echo "${TRAVIS_PULL_REQUEST_BRANCH:-${TRAVIS_BRANCH}}" | sed 's/\//_/g'; fi`
2828
- echo "docker tags $TAG and ${TAG}-all"
2929
- docker build --build-arg MAKE_TARGET="test build" -t $REPO:$TAG -f Dockerfile .
3030
- docker build --build-arg MAKE_TARGET="all" -t $REPO:${TAG}-all -f Dockerfile .

0 commit comments

Comments
 (0)