forked from stamen/toner-carto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
21 lines (18 loc) · 796 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
machine:
services:
- docker
dependencies:
cache_directories:
- "data/"
pre:
- sudo apt-add-repository -y ppa:ubuntugis/ubuntugis-unstable && sudo apt-get update && sudo apt-get install -y mapnik-utils gdal-bin make curl git unzip zip
override:
- if [ "$(git tag -l --contains HEAD)" != "" ]; then make db/shapefiles; fi
test:
override:
- if [ "$(git tag -l --contains HEAD)" != "" ]; then docker build -t quay.io/stamen/toner-data:$(git tag -l --contains HEAD) shp/; fi
deployment:
publish:
branch: master
commands:
- if [ "$(git tag -l --contains HEAD)" != "" ]; then docker login -e ${DOCKER_EMAIL:null} -u -u "${DOCKER_USER}" -p "${DOCKER_PASS}" ${DOCKER_REGISTRY}; docker push quay.io/stamen/toner-data:$(git tag -l --contains HEAD) shp/; fi