Skip to content

Commit

Permalink
Updated travis config to set git tag as docker tag
Browse files Browse the repository at this point in the history
  • Loading branch information
HadesArchitect authored Jan 29, 2019
1 parent c8c737b commit 51a805b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,14 @@ services:

# Build the docker image
script:
- ./build/docker-build.sh
- docker build -t ${TRAVIS_COMMIT} .

# If successful, see if we need to publish also
after_success:
- ./build/travis-publish.sh
- test -z $TRAVIS_TAG && travis_terminate 0
- docker tag ${TRAVIS_COMMIT} killrvideo/killrvideo-dse-config:${TRAVIS_TAG}
- docker login -u $DOCKER_USER -p $DOCKER_PASS
- docker push killrvideo/killrvideo-dse-config:${TRAVIS_TAG}

# Environment variables needed when publishing
env:
Expand Down

0 comments on commit 51a805b

Please sign in to comment.