-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
37 lines (35 loc) · 898 Bytes
/
cloudbuild.yaml
File metadata and controls
37 lines (35 loc) · 898 Bytes
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
steps:
- name: 'docker'
id: build
args:
- build
- '-t'
- 'asia.gcr.io/${PROJECT_ID}/${_PROJECT_APP_NAME}/${_BUILD_ENV}/app:${SHORT_SHA}'
- '.'
- name: 'gcr.io/cloud-builders/docker'
id: push
args:
- push
- 'asia.gcr.io/${PROJECT_ID}/${_PROJECT_APP_NAME}/${_BUILD_ENV}/app:${SHORT_SHA}'
- name: 'gcr.io/cloud-builders/gcloud'
id: deploy
waitFor:
- build
- push
entrypoint: gcloud
args:
- 'run'
- 'deploy'
- '$_CLOUD_RUN_APP_NAME'
- '--image'
- 'asia.gcr.io/${PROJECT_ID}/${_PROJECT_APP_NAME}/${_BUILD_ENV}/app:${SHORT_SHA}'
- '--region'
- '${_REGION}'
- '--ingress'
- 'internal-and-cloud-load-balancing'
- '--min-instances'
- '${_MIN_INSTANCES}'
- '--port'
- '${_CONTAINERPORTUSED}'
- '--allow-unauthenticated'
timeout: "3600s"