generated from paulosestini/internship-pcs-server-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloudbuild.yaml
31 lines (31 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
21
22
23
24
25
26
27
28
29
30
31
steps:
- name: "gcr.io/google.com/cloudsdktool/cloud-sdk"
entrypoint: gcloud
args:
[
"container",
"images",
"delete",
"gcr.io/$PROJECT_ID/$REPO_NAME:$BRANCH_NAME",
"--force-delete-tags",
"--quiet",
]
allowFailure: true
- name: "gcr.io/cloud-builders/docker"
args: ["build", "-t", "gcr.io/$PROJECT_ID/$REPO_NAME:$BRANCH_NAME", "."]
- name: "gcr.io/cloud-builders/docker"
args: ["push", "gcr.io/$PROJECT_ID/$REPO_NAME:$BRANCH_NAME"]
- name: "gcr.io/google.com/cloudsdktool/cloud-sdk"
entrypoint: gcloud
args:
[
"run",
"deploy",
"positions-internship-service",
"--image",
"gcr.io/$PROJECT_ID/$REPO_NAME:$BRANCH_NAME",
"--region",
"us-central1",
]
images:
- gcr.io/$PROJECT_ID/$REPO_NAME:$BRANCH_NAME