We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fa096d6 + 9fa79e1 commit d4bea4cCopy full SHA for d4bea4c
.travis.yml
@@ -24,7 +24,7 @@ notifications:
24
script:
25
- go build .
26
- 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`
+ - 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`
28
- echo "docker tags $TAG and ${TAG}-all"
29
- docker build --build-arg MAKE_TARGET="test build" -t $REPO:$TAG -f Dockerfile .
30
- docker build --build-arg MAKE_TARGET="all" -t $REPO:${TAG}-all -f Dockerfile .
0 commit comments