forked from isb-cgc/ISB-CGC-Webapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
31 lines (31 loc) · 1.21 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
machine:
timezone:
America/Los_Angeles
environment:
PYTHONPATH: /home/ubuntu/${CIRCLE_PROJECT_REPONAME}:/home/ubuntu/${CIRCLE_PROJECT_REPONAME}/lib
python:
version: 2.7.10
dependencies:
override:
- sudo -E /bin/sh ./shell/install-deps.sh
database:
post:
- mysql -u ubuntu -e "USE mysql; SET PASSWORD FOR 'ubuntu'@'localhost' = PASSWORD('isb')"
- sudo -E /bin/sh ./shell/database-setup.sh
deployment:
staging:
branch: [master]
commands:
- sudo -E rm -rf ./lib
- sudo -E /bin/sh ./shell/gcloud_authenticate.sh
- sudo -E /bin/sh ./shell/gcloud-pull-staging-files.sh
- sudo -E ./google-cloud-sdk/bin/gcloud config set app/use_cloud_build 0
- sudo -E ./google-cloud-sdk/bin/gcloud preview app deploy app.yaml dispatch.yaml cron.yaml queue.yaml --promote
production:
branch: [prod]
commands:
- sudo -E rm -rf ./lib
- sudo -E /bin/sh ./shell/gcloud_authenticate.sh
- sudo -E /bin/sh ./shell/gcloud-pull-prod-files.sh
- sudo -E ./google-cloud-sdk/bin/gcloud config set app/use_cloud_build 0
- sudo -E ./google-cloud-sdk/bin/gcloud preview app deploy app.yaml dispatch.yaml cron.yaml queue.yaml --promote --force --stop-previous-version