Fix image TAG

This commit is contained in:
Oleksii Shevchuk 2018-01-05 19:50:01 +02:00
parent eeeb090de4
commit f555ada139
1 changed files with 2 additions and 1 deletions

View File

@ -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}