From 46638bab5b39c2765f46ef108ceb51626c32d5bf Mon Sep 17 00:00:00 2001 From: Benjamin Gamard Date: Wed, 24 Jun 2020 21:18:37 +0200 Subject: [PATCH] Build and push docs-importer to Docker Hub --- .travis.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.travis.yml b/.travis.yml index 1f78921f..500f309c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,6 +17,13 @@ after_success: docker tag $REPO:$COMMIT $REPO:$TAG docker tag $REPO:$COMMIT $REPO:travis-$TRAVIS_BUILD_NUMBER docker push $REPO + cd docs-importer + export REPO=sismics/docs-importer + export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH ; fi` + docker build -f Dockerfile -t $REPO:$COMMIT . + docker tag $REPO:$COMMIT $REPO:$TAG + docker tag $REPO:$COMMIT $REPO:travis-$TRAVIS_BUILD_NUMBER + docker push $REPO fi env: global: