-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathold.cloudbuild.yaml
39 lines (39 loc) · 1.72 KB
/
old.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
steps:
- name: 'gcr.io/cloud-builders/docker'
entrypoint: 'bash'
args: ['-c', 'docker pull gcr.io/$PROJECT_ID/${_APP_NAME}:latest || exit 0']
- name: 'gcr.io/cloud-builders/docker'
args: [
'build',
'-t',
'gcr.io/$PROJECT_ID/${_APP_NAME}:latest',
'--cache-from', 'gcr.io/$PROJECT_ID/${_APP_NAME}:latest',
'--build-arg', 'SKIP_PREFLIGHT_CHECK=${_SKIP_PREFLIGHT_CHECK}',
'--build-arg', 'NODE_ENV=${_NODE_ENV}',
'--build-arg', 'REACT_APP_HOTJAR_CODE=${_REACT_APP_HOTJAR_CODE}',
'--build-arg', 'REACT_APP_HOTJAR_CODE_VERSION=${_REACT_APP_HOTJAR_CODE_VERSION}',
'--build-arg', 'REACT_APP_METADATA_CATALOG_URL=${_REACT_APP_METADATA_CATALOG_URL}',
'--build-arg', 'REACT_APP_NEWSLETTER_EXAMPLE_URL=${_REACT_APP_NEWSLETTER_EXAMPLE_URL}',
'--build-arg', 'REACT_APP_TERMS_AND_CONDITIONS_URL=${_REACT_APP_TERMS_AND_CONDITIONS_URL}',
'--build-arg', 'REACT_APP_GATEWAY_PRIVACY_POLICY_URL=${_REACT_APP_GATEWAY_PRIVACY_POLICY_URL}',
'--build-arg', 'REACT_APP_FIVE_SAFES_URL=${_REACT_APP_FIVE_SAFES_URL}',
'.']
- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'gcr.io/$PROJECT_ID/${_APP_NAME}:latest']
- name: 'gcr.io/cloud-builders/gcloud'
args:
[
'run',
'deploy',
'latest-web',
'--image',
'gcr.io/$PROJECT_ID/${_APP_NAME}:latest',
'--platform',
'managed',
'--region',
'${_REGION}',
'--allow-unauthenticated',
]
timeout: 2400s
options:
machineType: 'E2_HIGHCPU_8'