-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
39 lines (35 loc) · 1.28 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
machine:
services:
- docker
python:
version: 2.7.3
checkout:
post:
- git submodule update --init
dependencies:
cache_directories:
- ~/docker
- ~/google-cloud-sdk
override:
- gcloud_scripts/install_sdk.sh
- gcloud_scripts/authenticate.sh
- if [[ -e ~/docker/node.tar ]]; then docker load -i ~/docker/node.tar; fi
- if [[ -e ~/docker/gcd.tar ]]; then docker load -i ~/docker/gcd.tar; fi
- docker pull node:5.3.0
- docker pull risaacson/gcd-local:v1beta2-rev1-3.0.2
- mkdir -p ~/docker
- docker save node:5.3.0 > ~/docker/node.tar
- docker save risaacson/gcd-local:v1beta2-rev1-3.0.2 > ~/docker/gcd.tar
test:
override:
- echo -e "AUTH0_DOMAIN=${AUTH0_DOMAIN}\nAUTHO_CLIENT_ID=${AUTHO_CLIENT_ID_DEV}\nAUTH0_CLIENT_SECRET=${AUTH0_CLIENT_SECRET_DEV}\nAUTH0_CONNECTION=${AUTH0_CONNECTION_DEV}" > .env
- docker-compose run api npm run ci
deployment:
dev:
branch: master
commands:
- gcloud_scripts/kubernetes_deploy.sh suppliers-api app=suppliers-api development ${PWD} ${PWD}/kubernetes/rc.json ${PWD}/kubernetes/service.json dev
prod:
tag: /v.*/
commands:
- gcloud_scripts/kubernetes_deploy.sh suppliers-api app=suppliers-api production ${PWD} ${PWD}/kubernetes/rc.json ${PWD}/kubernetes/service.json