-
Notifications
You must be signed in to change notification settings - Fork 6
38 lines (29 loc) · 944 Bytes
/
Copy pathenvironments.yml
File metadata and controls
38 lines (29 loc) · 944 Bytes
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
name: '2. Environments'
on:
workflow_dispatch:
permissions:
id-token: write
contents: read
jobs:
deploy:
strategy:
matrix:
# TEMPLATE_ADD_ENVIRONMENT Any new environment must be added here to allow the deployment of environment resources via GitHub Actions
environment: [ development, production ]
runs-on: ubuntu-latest
environment: ${{ matrix.environment }}
steps:
- uses: actions/checkout@v4
- uses: azure/login@v2
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
enable-AzPSSession: true
- name: 'Deploy Azure resources'
uses: azure/powershell@v2
with:
inlineScript: |
Set-Location ./infrastructure
./deploy-environment.ps1 -Environment ${{ matrix.environment }}
azPSVersion: "9.5.0"