From f555ada1391abf9056bee84d03a8b30108555523 Mon Sep 17 00:00:00 2001 From: Oleksii Shevchuk Date: Fri, 5 Jan 2018 19:50:01 +0200 Subject: [PATCH] Fix image TAG --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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}