Skip to content
This repository has been archived by the owner on Nov 5, 2021. It is now read-only.

Commit

Permalink
Update .travis.yml
Browse files Browse the repository at this point in the history
Set docker image version to github tag if it is set.
  • Loading branch information
manugarg authored Aug 1, 2017
1 parent 04783a1 commit 952055c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ services:
after_success:
- CGO_ENABLED=0 go build -ldflags '-extldflags "-static"' ./cmd/cloudprober.go
- cp /etc/ssl/certs/ca-certificates.crt .
- DOCKER_VERSION=latest
- test -n "$TRAVIS_TAG" && DOCKER_VERSION=$TRAVIS_TAG
- test -n "$DOCKER_IMAGE" && test "$TRAVIS_OS_NAME" = "linux" && docker build -t ${DOCKER_IMAGE}:latest . && docker login -u ${DOCKER_USER} -p ${DOCKER_PASS} && docker push ${DOCKER_IMAGE}

0 comments on commit 952055c

Please sign in to comment.