-
Notifications
You must be signed in to change notification settings - Fork 6
33 lines (33 loc) · 1.04 KB
/
deploy_app02_infra.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
on:
push:
branches: [master]
paths:
- 'app02/bicep/nsg*.bicep'
- 'app02/bicep/nsg*.csv'
- 'app02/bicep/infra*.bicep'
name: Azure bicep - Azure Firewall - On Push
jobs:
deploy-app02:
concurrency:
group: deploy_app02
runs-on: ubuntu-latest
steps:
# Checkout local repo
- name: Checkout local repo
uses: actions/checkout@main
# Expand CSV file with NSG rules to JSON
- name: Expand CSV file with NSG rules to JSON
run: |
python3 ./scripts/nsg_csv_to_json.py --csv-file ./app02/bicep/nsg-rules-app02.csv --output-file ./app02/bicep/nsg-rules-app02.json --verbose
# Log into Azure
- uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
# Deploy bicep template
- name: Deploy bicep template for global policy
uses: azure/arm-deploy@v1
with:
subscriptionId: ${{ secrets.AZURE_SUBSCRIPTION }}
resourceGroupName: ${{ secrets.AZURE_RG }}
template: ./app02/bicep/infra-app02.bicep
parameters: prefix=app02