-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
39 lines (35 loc) · 1.14 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
- 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:
- docker-compose run api npm run ci
deployment:
dev:
branch: master
commands:
- echo "production = true" > .npmrc
- gcloud_scripts/kubernetes_deploy.sh products-api app=products-api development ${PWD} ${PWD}/kubernetes/rc.json ${PWD}/kubernetes/service.json dev
prod:
tag: /v.*/
commands:
- echo "production = true" > .npmrc
- gcloud_scripts/kubernetes_deploy.sh products-api app=products-api production ${PWD} ${PWD}/kubernetes/rc.json ${PWD}/kubernetes/service.json