-
Notifications
You must be signed in to change notification settings - Fork 57
52 lines (44 loc) · 1.38 KB
/
fgt-arm-azure-gateway-loadbalancer.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
name: '[FGT] ARM - Azure Gateway Load Balancer'
env:
ARMPath: FortiGate/AzureGatewayLoadBalancer/
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'FortiGate/AzureGatewayLoadBalancer/*.json'
- 'FortiGate/AzureGatewayLoadBalancer/**.tests.ps1'
jobs:
ARM_AzureGatewayLoadBalancer:
name: 'ARM Template AzureGatewayLoadBalancer'
runs-on: ubuntu-latest
env:
ARM_CLIENT_ID: ${{ secrets.ARM_CLIENT_ID }}
ARM_CLIENT_SECRET: ${{ secrets.ARM_CLIENT_SECRET }}
ARM_SUBSCRIPTION_ID: ${{ secrets.ARM_SUBSCRIPTION_ID }}
ARM_TENANT_ID: ${{ secrets.ARM_TENANT_ID }}
steps:
- name: "Checkout"
uses: actions/checkout@v4
- name: Test ARM Templates - path
id: armttktest
uses: aliencube/[email protected]
with:
path: ${{ env.ARMPath }}
- name: Test result - path
shell: bash
continue-on-error: true
run: |
echo "${{ toJSON(fromJSON(steps.armttktest.outputs.results)) }}"
- name: Azure Login via Az module
uses: azure/login@v1
with:
creds: ${{secrets.AZURE_CREDENTIALS}}
enable-AzPSSession: true
- name: Post result to Teams
uses: freenet-actions/ms-teams-deploy-card@master # or "./" if in a local set-up
if: always()
with:
github-token: ${{ github.token }}
webhook-uri: ${{ secrets.MS_TEAMS_WEBHOOK_URI }}