diff --git a/.travis.yml b/.travis.yml index a67f12ae..bb0513a9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,8 +26,9 @@ script: - ls -l $TRAVIS_BUILD_DIR/pupy/payload_templates/linux-amd64.zip - ls -l $TRAVIS_BUILD_DIR/pupy/payload_templates/linux-x86.zip after_success: +- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH; fi` - docker login -u $DOCKER_USER -p $DOCKER_PASS -- cd $TRAVIS_BUILD_DIR/pupy && docker push alxchk >/dev/null +- cd $TRAVIS_BUILD_DIR/pupy && docker push alxchk/pupy:$TAG >/dev/null env: global: - COMMIT=${TRAVIS_COMMIT::8}