-
Notifications
You must be signed in to change notification settings - Fork 127
66 lines (60 loc) · 2.13 KB
/
App-Test-All.yml
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
# Workflow is for testing reusable workflows to expedite the developer inner loop.
name: App Deploy Reusable App workflows
on:
workflow_dispatch:
inputs:
ResourceGroup:
description: 'Resource Group Name'
type: string
required: true
AKSNAME:
description: 'AKS Cluster Name'
type: string
required: true
ACRNAME:
description: 'ACR Name'
required: true
type: string
Environment:
description: 'A GitHub Environment to pull action secrets from'
type: environment
required: false
jobs:
ReusableWF:
runs-on: ubuntu-latest
outputs:
RG: ${{ github.event.inputs.ResourceGroup }}
AKSNAME: ${{ github.event.inputs.AKSNAME }}
ACRNAME: ${{ github.event.inputs.ACRNAME }}
ENVIRONMENT: ${{ github.event.inputs.Environment }}
steps:
- name: Dummy step
run: echo "Resuable workflows can't be directly reference ENV/INPUTS (yet)"
BuildOnACR:
needs: [ReusableWF]
uses: ./.github/workflows/App-AzureVote-BuildOnACRs.yml
with:
ENVIRONMENT: ${{ needs.ReusableWF.outputs.ENVIRONMENT }}
RG: ${{ needs.ReusableWF.outputs.RG }}
AKSNAME: ${{ needs.ReusableWF.outputs.AKSNAME }}
ACRNAME: ${{ needs.ReusableWF.outputs.ACRNAME }}
APPNAME: basevote1
secrets:
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
HelmRunCmd:
needs: [ReusableWF]
uses: ./.github/workflows/App-AzureVote-HelmRunCmd.yml
with:
ENVIRONMENT: ${{ needs.ReusableWF.outputs.ENVIRONMENT }}
RG: ${{ needs.ReusableWF.outputs.RG }}
AKSNAME: ${{ needs.ReusableWF.outputs.AKSNAME }}
APPNAME: azure-vote
INGRESSTYPE: Traefik
DEBUG: true
HELMPACKAGEURI: "https://github.com/Azure/aks-baseline-automation/raw/main/workloads/azure-vote/AzureVote-helm.tgz"
secrets:
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}