Skip to content

Commit 356e60f

Browse files
Added reusable workflow for Windows and Linux deployments
1 parent 4b8eafb commit 356e60f

4 files changed

Lines changed: 1161 additions & 814 deletions

File tree

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
name: Deploy-Test-Cleanup (v2) Windows
2+
on:
3+
# push:
4+
# branches:
5+
# - main
6+
workflow_dispatch:
7+
inputs:
8+
azure_location:
9+
description: 'Azure Location For Deployment'
10+
required: false
11+
default: 'australiaeast'
12+
type: choice
13+
options:
14+
- 'australiaeast'
15+
- 'centralus'
16+
- 'eastasia'
17+
- 'eastus2'
18+
- 'japaneast'
19+
- 'northeurope'
20+
- 'southeastasia'
21+
- 'uksouth'
22+
- 'eastus'
23+
resource_group_name:
24+
description: 'Resource Group Name (Optional)'
25+
required: false
26+
default: ''
27+
type: string
28+
29+
waf_enabled:
30+
description: 'Enable WAF'
31+
required: false
32+
default: false
33+
type: boolean
34+
EXP:
35+
description: 'Enable EXP'
36+
required: false
37+
default: false
38+
type: boolean
39+
build_docker_image:
40+
description: 'Build And Push Docker Image (Optional)'
41+
required: false
42+
default: false
43+
type: boolean
44+
45+
cleanup_resources:
46+
description: 'Cleanup Deployed Resources'
47+
required: false
48+
default: false
49+
type: boolean
50+
51+
run_e2e_tests:
52+
description: 'Run End-to-End Tests'
53+
required: false
54+
default: 'GoldenPath-Testing'
55+
type: choice
56+
options:
57+
- 'GoldenPath-Testing'
58+
- 'Smoke-Testing'
59+
- 'None'
60+
61+
AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID:
62+
description: 'Log Analytics Workspace ID (Optional)'
63+
required: false
64+
default: ''
65+
type: string
66+
AZURE_EXISTING_AI_PROJECT_RESOURCE_ID:
67+
description: 'AI Project Resource ID (Optional)'
68+
required: false
69+
default: ''
70+
type: string
71+
existing_webapp_url:
72+
description: 'Existing Container WebApp URL (Skips Deployment)'
73+
required: false
74+
default: ''
75+
type: string
76+
77+
# schedule:
78+
# - cron: '0 9,21 * * *' # Runs at 9:00 AM and 9:00 PM GMT
79+
80+
jobs:
81+
Run:
82+
uses: ./.github/workflows/reusable-deployment-workflow.yml
83+
with:
84+
runner_os: windows-latest
85+
azure_location: ${{ github.event.inputs.azure_location || 'australiaeast' }}
86+
resource_group_name: ${{ github.event.inputs.resource_group_name || '' }}
87+
waf_enabled: ${{ github.event.inputs.waf_enabled == 'true' }}
88+
EXP: ${{ github.event.inputs.EXP == 'true' }}
89+
build_docker_image: ${{ github.event.inputs.build_docker_image == 'true' }}
90+
cleanup_resources: ${{ github.event.inputs.cleanup_resources == 'true' }}
91+
run_e2e_tests: ${{ github.event.inputs.run_e2e_tests || 'GoldenPath-Testing' }}
92+
AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID: ${{ github.event.inputs.AZURE_ENV_LOG_ANALYTICS_WORKSPACE_ID || '' }}
93+
AZURE_EXISTING_AI_PROJECT_RESOURCE_ID: ${{ github.event.inputs.AZURE_EXISTING_AI_PROJECT_RESOURCE_ID || '' }}
94+
existing_webapp_url: ${{ github.event.inputs.existing_webapp_url || '' }}
95+
trigger_type: ${{ github.event_name }}
96+
secrets: inherit

0 commit comments

Comments
 (0)