-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
35 lines (31 loc) · 949 Bytes
/
cloudbuild.yaml
File metadata and controls
35 lines (31 loc) · 949 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
31
32
33
34
35
steps:
# 1. Building a Docker Image
- name: 'gcr.io/cloud-builders/docker'
args:
- 'build'
- '-t'
- 'us-central1-docker.pkg.dev/celestine-484708/celestine-images/celestine-backend:latest'
- '.'
id: 'Build'
# 2. Submit an image to Artifact Registry
- name: 'gcr.io/cloud-builders/docker'
args:
- 'push'
- 'us-central1-docker.pkg.dev/celestine-484708/celestine-images/celestine-backend:latest'
id: 'Push'
# 3. Deploy the image to Cloud Run
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
entrypoint: 'gcloud'
args:
- 'run'
- 'deploy'
- 'celestine-backend'
- '--image=us-central1-docker.pkg.dev/celestine-484708/celestine-images/celestine-backend:latest'
- '--region=us-central1'
- '--platform=managed'
- '--allow-unauthenticated'
- '--port=8000'
id: 'Deploy'
images:
- 'us-central1-docker.pkg.dev/celestine-484708/celestine-images/celestine-backend:latest'
timeout: '1200s'