-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcloudbuild.yaml
41 lines (41 loc) · 998 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
steps:
- name: 'gcr.io/cloud-builders/npm'
args: ['install']
- name: 'gcr.io/cloud-builders/npm'
args: ['run', 'build']
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'gcr.io/$PROJECT_ID/${_SERVICE}:$REVISION_ID', '.']
- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'gcr.io/$PROJECT_ID/${_SERVICE}:$REVISION_ID']
- name: 'gcr.io/cloud-builders/gcloud'
args:
- 'beta'
- 'run'
- 'deploy'
- '${_SERVICE}'
- '--image'
- 'gcr.io/$PROJECT_ID/${_SERVICE}:$REVISION_ID'
- '--region'
- '${_REGION}'
- '--platform'
- 'managed'
- '--project'
- '$PROJECT_ID'
- '--allow-unauthenticated'
#- name: 'gcr.io/cloud-builders/git'
# args:
# - 'init'
#- name: 'gcr.io/cloud-builders/git'
# args:
# - 'remote'
# - 'set-url'
# - 'origin'
# - '${_GITHUB_URL}'
#- name: 'gcr.io/cloud-builders/npm:current'
# args:
# - 'run'
# - 'gren-release'
# env:
# - 'GREN_GITHUB_TOKEN=${_GITHUB_TOKEN}'
images:
- gcr.io/$PROJECT_ID/${_SERVICE}:$REVISION_ID