-
Notifications
You must be signed in to change notification settings - Fork 1
66 lines (63 loc) · 1.79 KB
/
deployment.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Build and Deploy to Cloud Run
on:
workflow_dispatch:
inputs:
environment:
type: choice
required: true
default: "dev"
description: GitHub Environment
options:
- dev
- qa
- prod
jobs:
#DEV
dev:
if: ${{ github.event.inputs.environment == 'dev' }}
uses: ./.github/workflows/_deployment.yaml
permissions:
id-token: write
contents: read
with:
environment: ${{ github.event.inputs.environment }}
ref: ${{ github.sha }}
gcp_project_id: arched-inkwell-368821
artifact_registry_repo: reference-architectures
region: us-east4
service_name: pods
code_directory: ./code/Samples.Run.MarkdownPreview.Editor
cloud_run_sa: cloud-run-sa
secrets: inherit
#QA
qa:
if: ${{ github.event.inputs.environment == 'qa' }}
uses: ./.github/workflows/_deployment.yaml
permissions:
id-token: write
contents: read
with:
environment: ${{ github.event.inputs.environment }}
ref: ${{ github.sha }}
gcp_project_id: arched-inkwell-368821
artifact_registry_repo: reference-architectures
region: us-east4
service_name: pods
code_directory: ./code/Samples.Run.MarkdownPreview.Editor
secrets: inherit
#PROD
prod:
if: ${{ github.event.inputs.environment == 'prod' }}
uses: ./.github/workflows/_deployment.yaml
permissions:
id-token: write
contents: read
with:
environment: ${{ github.event.inputs.environment }}
ref: ${{ github.sha }}
gcp_project_id: arched-inkwell-368821
artifact_registry_repo: reference-architectures
region: us-east4
service_name: pods
code_directory: ./code/Samples.Run.MarkdownPreview.Editor
secrets: inherit