mirror of
https://github.com/sismics/docs.git
synced 2024-12-22 11:23:48 +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: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:
|
||||
|
Loading…
Reference in New Issue
Block a user