-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudbuild.yml
More file actions
36 lines (34 loc) · 844 Bytes
/
cloudbuild.yml
File metadata and controls
36 lines (34 loc) · 844 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
steps:
- name: "gcr.io/cloud-builders/docker"
args:
[
"build",
"-t",
"europe-west1-docker.pkg.dev/$PROJECT_ID/${_SERVICE_NAME}/mailbeacon",
"${_PATH}",
]
- name: "gcr.io/cloud-builders/docker"
args:
[
"push",
"europe-west1-docker.pkg.dev/$PROJECT_ID/${_SERVICE_NAME}/mailbeacon",
]
- name: "gcr.io/cloud-builders/gcloud"
args:
[
"run",
"deploy",
"mailbeacon",
"--image",
"europe-west1-docker.pkg.dev/$PROJECT_ID/${_SERVICE_NAME}/mailbeacon",
"--region",
"europe-west1",
"--platform",
"managed",
"--allow-unauthenticated",
]
substitutions:
_SERVICE_NAME: mailbeacon
_PATH: .
images:
- "europe-west1-docker.pkg.dev/$PROJECT_ID/${_SERVICE_NAME}/mailbeacon"