-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
39 lines (36 loc) · 945 Bytes
/
Copy pathcloudbuild.yaml
File metadata and controls
39 lines (36 loc) · 945 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
36
37
38
39
steps:
# Build the container image with Nginx
- name: "gcr.io/cloud-builders/docker"
args:
- "build"
- "--build-arg"
- "FARM_API_URL=https://flask-api-ann-jxtsjymlfa-uc.a.run.app"
- "-t"
- "gcr.io/$PROJECT_ID/my-lepak-lab-nginx"
- "."
# Push the container image to Container Registry
- name: "gcr.io/cloud-builders/docker"
args: ["push", "gcr.io/$PROJECT_ID/my-lepak-lab-nginx"]
# Deploy container image to Cloud Run
- name: "gcr.io/cloud-builders/gcloud"
args:
- "run"
- "deploy"
- "my-lepak-lab"
- "--image"
- "gcr.io/$PROJECT_ID/my-lepak-lab-nginx"
- "--region"
- "us-central1"
- "--platform"
- "managed"
- "--allow-unauthenticated"
- "--port"
- "8080"
- "--memory"
- "512Mi"
- "--cpu"
- "1"
- "--max-instances"
- "10"
images:
- "gcr.io/$PROJECT_ID/my-lepak-lab-nginx"