-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathold.cloudbuild_uat.yaml
36 lines (36 loc) · 1.54 KB
/
old.cloudbuild_uat.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
steps:
- name: 'gcr.io/cloud-builders/docker'
args: [
'build',
'-t',
'gcr.io/$PROJECT_ID/${_APP_NAME}:uat',
'--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}:uat']
- name: 'gcr.io/cloud-builders/gcloud'
args:
[
'run',
'deploy',
'uat-web',
'--image',
'gcr.io/$PROJECT_ID/${_APP_NAME}:uat',
'--platform',
'managed',
'--region',
'${_REGION}',
'--allow-unauthenticated',
]
images:
- gcr.io/$PROJECT_ID/${_APP_NAME}:uat
timeout: 2400s