forked from CH2-PS324/palomade-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild.yaml
25 lines (25 loc) · 1016 Bytes
/
cloudbuild.yaml
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
steps:
- name: gcr.io/cloud-builders/docker
args:
- "build"
- "-t"
- "gcr.io/$PROJECT_ID/palomade-test:$COMMIT_SHA"
- "."
- name: gcr.io/cloud-builders/docker
args:
- "push"
- "gcr.io/$PROJECT_ID/palomade-test:$COMMIT_SHA"
- name: "gcr.io/cloud-builders/gcloud"
args:
- "run"
- "deploy"
- "palomade-test"
- "--image=gcr.io/$PROJECT_ID/palomade-test:$COMMIT_SHA"
- "--region=us-central1"
- "--cpu=2"
- "--memory=2048Mi"
- "--allow-unauthenticated"
- "--set-secrets=DB_HOST=db_host:latest,DB_USER=db_username:latest,DB_PASSWORD=db_password:latest,SECRET_KEY=palomade_secret_key:latest,HASH_KEY=palomade_hash_key:latest,MAIL_HOST=palomade_mail_host:latest,MAIL_PORT=palomade_mail_port:latest,MAIL_USER=palomade_mail_user:latest,MAIL_PASSWORD=palomade_mail_password:latest,MAPS_KEY=palomade_maps_key:latest"
images:
- "gcr.io/$PROJECT_ID/palomade-test:$COMMIT_SHA"
logsBucket: "gs://palomade-test-buckets/logs"