2023-07-21 19:48:29 +03:00
|
|
|
name: ALZ-Bicep-4B-VWAN
|
2023-03-22 19:59:23 +03:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- "main"
|
2023-08-04 22:04:24 +03:00
|
|
|
paths:
|
|
|
|
- "config/custom-parameters/resourceGroupConnectivity.parameters.all.json"
|
|
|
|
- "config/custom-parameters/vwanConnectivity.parameters.all.json"
|
2023-07-20 18:10:49 +03:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- "main"
|
2023-03-22 19:59:23 +03:00
|
|
|
paths:
|
|
|
|
- "config/custom-parameters/resourceGroupConnectivity.parameters.all.json"
|
2023-04-04 11:04:19 +03:00
|
|
|
- "config/custom-parameters/vwanConnectivity.parameters.all.json"
|
2023-03-22 19:59:23 +03:00
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
id-token: write
|
|
|
|
contents: read
|
2023-07-20 18:10:49 +03:00
|
|
|
pull-requests: write
|
2023-03-22 19:59:23 +03:00
|
|
|
|
|
|
|
env:
|
2023-04-06 08:47:45 +03:00
|
|
|
ENV_FILE: ".env"
|
2023-07-20 18:10:49 +03:00
|
|
|
IS_PULL_REQUEST: "${{ github.event_name == 'pull_request' }}"
|
2023-03-22 19:59:23 +03:00
|
|
|
|
|
|
|
jobs:
|
2023-07-21 19:48:29 +03:00
|
|
|
ALZ_Bicep_4b_VWAN:
|
2023-03-22 19:59:23 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout Repo
|
2024-02-08 08:47:40 +03:00
|
|
|
uses: actions/checkout@v4
|
2023-03-22 19:59:23 +03:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
2023-04-06 08:47:45 +03:00
|
|
|
- name: "Remove Quotation Marks from Environment File"
|
|
|
|
uses: azure/powershell@v1
|
|
|
|
with:
|
|
|
|
inlineScript: |
|
|
|
|
Write-Host $ENV_FILE
|
|
|
|
(Get-Content -Path $env:ENV_FILE -Encoding UTF8) | ForEach-Object {$_ -replace '"',''} | Out-File -FilePath $env:ENV_FILE -Encoding UTF8
|
|
|
|
azPSVersion: "latest"
|
|
|
|
|
|
|
|
- name: Import Environment Variables from File
|
|
|
|
run: cat ${{ env.ENV_FILE }} >> $GITHUB_ENV
|
|
|
|
|
2023-03-22 19:59:23 +03:00
|
|
|
- name: OIDC Login to Tenant
|
2024-07-17 00:52:04 +03:00
|
|
|
uses: azure/login@v2
|
2023-03-22 19:59:23 +03:00
|
|
|
with:
|
|
|
|
client-id: ${{ secrets.AZURE_CLIENT_ID }}
|
|
|
|
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
|
|
|
|
subscription-id: ${{ env.CONNECTIVITY_SUBSCRIPTION_ID }}
|
|
|
|
enable-AzPSSession: true
|
|
|
|
|
|
|
|
- name: "Connectivity Resource Group Deployment"
|
|
|
|
uses: azure/powershell@v1
|
|
|
|
with:
|
|
|
|
inlineScript: |
|
|
|
|
.\pipeline-scripts\Deploy-ALZConnectivityResourceGroup.ps1
|
|
|
|
azPSVersion: "latest"
|
|
|
|
|
|
|
|
- name: "Hub (VWAN) Deployment"
|
|
|
|
uses: azure/powershell@v1
|
|
|
|
with:
|
|
|
|
inlineScript: |
|
|
|
|
.\pipeline-scripts\Deploy-ALZHub-VWAN.ps1
|
|
|
|
azPSVersion: "latest"
|