-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (50 loc) · 1.43 KB
/
01-deploy-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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: 01-Deploy-Infrastructure
on:
workflow_dispatch:
jobs:
deploy:
name: Deploy Infrastructure
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Make scripts executable
run: |
find ./scripts -type f -exec chmod +x {} \;
- name: Azure login
if: success()
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Set Azure CLI extensions to auto-install
if: success()
run: |
az config set extension.use_dynamic_install=yes_without_prompt
- name: Set Environment Variables
if: success()
run: |
./scripts/set-env-vars.sh
- name: Create Resource Groups
if: success()
run: |
./scripts/01-deploy-infra/01-deploy-rgs.sh
- name: Deploy User-Assigned MI
if: success()
run: |
./scripts/01-deploy-infra/02-deploy-uami.sh
- name: Deploy Network
if: success()
run: |
./scripts/01-deploy-infra/03-deploy-network.sh
- name: Deploy Azure Compute Gallery
if: success()
run: |
./scripts/01-deploy-infra/04-deploy-compute-gallery.sh
- name: Azure logout
if: always()
uses: azure/CLI@v1
with:
inlineScript: |
az logout
az cache purge
az account clear