From 51a805b41a8d8c732d0504cc85d8e0837b631219 Mon Sep 17 00:00:00 2001 From: Aleksandr Volochnev Date: Tue, 29 Jan 2019 17:22:10 +0100 Subject: [PATCH] Updated travis config to set git tag as docker tag --- .travis.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 9c97ae2..50a84a5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: