-
Notifications
You must be signed in to change notification settings - Fork 6
37 lines (37 loc) · 1.09 KB
/
deploy_azfw_bicep.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
on:
push:
branches: [master]
paths:
- '**/ipgroups*.bicep'
- '**/rcg*.bicep'
- '**/azfwpolicy*.bicep'
- '**/rc*.json'
name: Azure bicep - Azure Firewall - On Push
jobs:
deploy-azfw-policy:
concurrency:
group: deploy_azfw
runs-on: ubuntu-latest
steps:
# Checkout local repo
- name: Checkout local repo
uses: actions/checkout@main
# Checkout remote repo for app04 (the path is important, the bicep template expects to find it there)
- name: Checkout app04 repo
uses: actions/checkout@v2
with:
repository: erjosito/segmentation-iac-app04
ref: master
path: './app04'
# 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: ./shared/bicep/azfwpolicy.bicep
parameters: policyName=TestPolicyBicep