-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcloudbuild.yaml
37 lines (32 loc) · 1.28 KB
/
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
32
33
34
35
36
37
steps:
# ----------------------------------------------------------------------------------------------------------------------------------------------------------------
- name: "gcr.io/cloud-builders/docker"
args:
[
"build",
"-f",
"Dockerfile.prod",
"-t",
"us-central1-docker.pkg.dev/forward-script-438915-v8/hrmis-artifact-registry/web-ui",
".",
]
id: "Build Customer Support Module Docker Image"
- name: "gcr.io/cloud-builders/docker"
args:
[
"push",
"us-central1-docker.pkg.dev/forward-script-438915-v8/hrmis-artifact-registry/web-ui",
]
id: "Push Customer Support Module Docker Image"
# ----------------------------------------------------------------------------------------------------------------------------------------------------------------
- name: "google/cloud-sdk:latest"
entrypoint: "sh"
args:
- -xe
- -c
- |
gcloud deploy apply --file deploy/pipeline.yaml --region=us-central1
gcloud deploy apply --file deploy/dev.yaml --region=us-central1
gcloud deploy releases create 'app-release-${SHORT_SHA}' --delivery-pipeline=gke-cicd-pipeline --region=us-central1 --skaffold-file=skaffold.yaml
options:
logging: CLOUD_LOGGING_ONLY