forked from kagisearch/smallweb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild.yaml
20 lines (20 loc) · 863 Bytes
/
cloudbuild.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
steps:
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'us-central1-docker.pkg.dev/${PROJECT_ID}/${_ARTIFACT_REGISTRY_REPO}/smallweb:${SHORT_SHA}', '.']
- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'us-central1-docker.pkg.dev/${PROJECT_ID}/${_ARTIFACT_REGISTRY_REPO}/smallweb:${SHORT_SHA}']
- name: google/cloud-sdk
args: [
'gcloud',
'run',
'deploy',
'smallweb',
'--image=us-central1-docker.pkg.dev/${PROJECT_ID}/${_ARTIFACT_REGISTRY_REPO}/smallweb:${SHORT_SHA}',
'--region', 'us-central1',
'--allow-unauthenticated',
'--set-env-vars', 'URL_PREFIX=/smallweb',
'--service-account', 'smallweb@${PROJECT_ID}.iam.gserviceaccount.com',
'--min-instances', '1'
]
images:
- us-central1-docker.pkg.dev/${PROJECT_ID}/${_ARTIFACT_REGISTRY_REPO}/smallweb:${SHORT_SHA}