-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
30 lines (29 loc) · 809 Bytes
/
cloudbuild.yaml
File metadata and controls
30 lines (29 loc) · 809 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
steps:
# Build the container image and push it with Kaniko
- name: 'gcr.io/kaniko-project/executor:latest'
args:
- --cache=true
- --cache-ttl=6h
- --dockerfile=Dockerfile
- --destination=gcr.io/$PROJECT_ID/$REPO_NAME:$COMMIT_SHA
# Cloud Run Deploy
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
entrypoint: 'gcloud'
args: [
'run',
'deploy',
'$REPO_NAME-$_ENV',
'--image',
'gcr.io/$PROJECT_ID/$REPO_NAME:$COMMIT_SHA',
'--platform',
'managed',
'--region',
'southamerica-west1',
'--port=8080',
'--min-instances=1',
'--max-instances=10',
'--session-affinity',
'--allow-unauthenticated',
'--service-account',
'512235777343-compute@developer.gserviceaccount.com',
]