mirror of
https://github.com/sismics/docs.git
synced 2024-11-21 21:47:57 +01:00
Build and push docs-importer to Docker Hub
This commit is contained in:
parent
4607362e46
commit
46638bab5b
@ -17,6 +17,13 @@ after_success:
|
|||||||
docker tag $REPO:$COMMIT $REPO:$TAG
|
docker tag $REPO:$COMMIT $REPO:$TAG
|
||||||
docker tag $REPO:$COMMIT $REPO:travis-$TRAVIS_BUILD_NUMBER
|
docker tag $REPO:$COMMIT $REPO:travis-$TRAVIS_BUILD_NUMBER
|
||||||
docker push $REPO
|
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
|
fi
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
|
Loading…
Reference in New Issue
Block a user