-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathcloudbuild.yaml
32 lines (30 loc) · 924 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
# steps:
# - name: 'gcr.io/cloud-builders/docker'
# entrypoint: 'bash'
# args:
# - '-c'
# - docker pull gcr.io/$PROJECT_ID/autot:latest || exit 0
# - name: 'gcr.io/cloud-builders/docker'
# args: [
# 'build',
# '-t', 'gcr.io/$PROJECT_ID/autot:latest',
# '--cache-from', 'gcr.io/$PROJECT_ID/autot:latest',
# '.'
# ]
# - name: 'gcr.io/cloud-builders/docker'
# args: ['push', 'gcr.io/$PROJECT_ID/autot:latest']
steps:
- name: 'gcr.io/kaniko-project/executor:latest'
args:
- --destination=gcr.io/$PROJECT_ID/autot
- --cache=true
- --cache-ttl=48h
# Deploy container image to Cloud Run
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
entrypoint: gcloud
args: ['run', 'deploy', 'autot',
'--image', 'gcr.io/$PROJECT_ID/autot:latest',
'--region', 'us-east4',
'--platform', 'managed',
'--no-allow-unauthenticated'
]