-
Notifications
You must be signed in to change notification settings - Fork 58
41 lines (37 loc) · 1.07 KB
/
aro-hcp-dev-what-if.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
---
name: ARO HCP Integrated DEV Bicep What-If
env:
DEPLOY_ENV: dev
DEPLOYMENT_NAME_SUFFIX: "-dev-${GITHUB_RUN_ID}"
on:
pull_request:
branches:
- main
paths:
- 'config/config.yaml'
- 'dev-infrastructure/**/*.bicep'
- 'dev-infrastructure/**/*.bicepparam'
- 'dev-infrastructure/Makefile'
- '.github/workflows/aro-hcp-dev-what-if.yml'
jobs:
what-if:
permissions:
id-token: 'write'
contents: 'read'
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 1
- name: "install azure-cli"
uses: "Azure/ARO-HCP@main"
- name: 'Az CLI login'
uses: azure/login@a65d910e8af852a8061c627c456678983e180302 # v2.2.0
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
- name: 'Deployment What If'
run: |
cd dev-infrastructure/
make what-if