-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (42 loc) · 1.08 KB
/
samples-deploy.yaml
File metadata and controls
48 lines (42 loc) · 1.08 KB
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
name: Build and deploy sample apps
on:
push:
branches:
- develop
paths:
- "samples/**"
- ".github/infra/**"
workflow_dispatch:
concurrency:
group: samples-${{ github.workflow }}-${{ github.actor_id }}
cancel-in-progress: true
jobs:
terraform-plan:
name: Terraform Plan
uses: ./.github/workflows/wf-tf-plan.yaml
permissions:
id-token: write
with:
tfvarWebAppName: ${{ vars.SAMPLE_APP_TRIGGER_NAME }}
secrets: inherit
terraform-apply:
name: Terraform Apply
uses: ./.github/workflows/wf-tf-apply.yaml
needs: terraform-plan
permissions:
id-token: write
secrets: inherit
build-trigger:
name: Build & Publish Trigger App
uses: ./.github/workflows/wf-samples-build.yaml
with:
appName: ${{ vars.SAMPLE_APP_TRIGGER_NAME }}
deploy-trigger:
name: Deploy Trigger App
uses: ./.github/workflows/wf-samples-deploy.yaml
needs: [build-trigger, terraform-apply]
permissions:
id-token: write
with:
appName: ${{ vars.SAMPLE_APP_TRIGGER_NAME }}
secrets: inherit