Pushing tags
This commit is contained in:
parent
cffbd7be5b
commit
30fb985a66
10
.travis.yml
10
.travis.yml
@ -7,6 +7,7 @@ services:
|
|||||||
before_install:
|
before_install:
|
||||||
- echo "Before install"
|
- echo "Before install"
|
||||||
before_script:
|
before_script:
|
||||||
|
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
|
||||||
- docker pull overv/openstreetmap-tile-server || true
|
- docker pull overv/openstreetmap-tile-server || true
|
||||||
script:
|
script:
|
||||||
- docker build --pull --cache-from overv/openstreetmap-tile-server --tag overv/openstreetmap-tile-server .
|
- docker build --pull --cache-from overv/openstreetmap-tile-server --tag overv/openstreetmap-tile-server .
|
||||||
@ -21,8 +22,13 @@ after_success:
|
|||||||
- if [[ "$TRAVIS_BRANCH" == "master" ]];
|
- if [[ "$TRAVIS_BRANCH" == "master" ]];
|
||||||
then
|
then
|
||||||
docker images ;
|
docker images ;
|
||||||
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin ;
|
|
||||||
docker push overv/openstreetmap-tile-server ;
|
docker push overv/openstreetmap-tile-server ;
|
||||||
fi
|
fi;
|
||||||
|
TAG=$(git describe --exact-match --tags 2> /dev/null) ;
|
||||||
|
if [ -n "$TAG" ];
|
||||||
|
then
|
||||||
|
docker tag overv/openstreetmap-tile-server "overv/openstreetmap-tile-server:$TAG" ;
|
||||||
|
docker push "overv/openstreetmap-tile-server:$TAG" ;
|
||||||
|
fi;
|
||||||
notifications:
|
notifications:
|
||||||
email: true
|
email: true
|
||||||
|
Loading…
Reference in New Issue
Block a user