generated from devonfw-forge/devon4py
-
Notifications
You must be signed in to change notification settings - Fork 1
/
cloudbuild.yaml
42 lines (42 loc) · 1.02 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
38
39
40
41
42
# [START Backend Build]
steps:
- name: gcr.io/cloud-builders/gsutil
args:
- cp
- 'gs://secrets/firebase.json'
- .
dir: .
- name: gcr.io/cloud-builders/gsutil
args:
- cp
- 'gs://secrets/PROD.env'
- .
dir: .
- name: gcr.io/cloud-builders/docker
args:
- build
- '-t'
- >-
gcr.io/poc-cloudnative-capgemini/github.com/devonfw-forge/your_repo:$COMMIT_SHA
- .
dir: .
- name: gcr.io/cloud-builders/docker
args:
- push
- >-
gcr.io/poc-cloudnative-capgemini/github.com/devonfw-forge/your_repo:$COMMIT_SHA
- name: gcr.io/google.com/cloudsdktool/cloud-sdk
args:
- run
- deploy
- your_cloud_run_service_name
- '--image'
- >-
gcr.io/poc-cloudnative-capgemini/github.com/devonfw-forge/your_repo:$COMMIT_SHA
- '--region'
- europe-southwest1
entrypoint: gcloud
images:
- >-
gcr.io/poc-cloudnative-capgemini/github.com/devonfw-forge/your_repo:$COMMIT_SHA
# [END Backend Build]