Skip to content

Commit d3976ca

Browse files
committed
Pass Azure subscription ID to workfow steps
1 parent cb58efc commit d3976ca

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/DeployBranchPush.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ jobs:
1010
uses: ./.github/workflows/DeployEverything.yml
1111
with:
1212
env: "dev"
13-
secrets:
13+
secrets:
14+
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
1415
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }}
1516
AZURE_STATIC_WEB_APPS_API_TOKEN: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
1617
TERRAFORM_STATE_ACCESS_KEY: ${{ secrets.TERRAFORM_STATE_ACCESS_KEY }}

.github/workflows/DeployEverything.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
default: "Test"
88
type: string
99
secrets:
10+
AZURE_SUBSCRIPTION_ID:
11+
required: true
1012
AZURE_CREDENTIALS:
1113
required: true
1214
AZURE_STATIC_WEB_APPS_API_TOKEN:
@@ -50,6 +52,7 @@ jobs:
5052
5153
terraform apply -auto-approve -var-file ../tfvars/${{ inputs.env }}.tfvars -var 'cloudflare_account_id=${{ secrets.CLOUDFLARE_ACCOUNT_ID }}'
5254
env:
55+
ARM_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
5356
ARM_ACCESS_KEY: ${{ secrets.TERRAFORM_STATE_ACCESS_KEY }}
5457
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
5558

.github/workflows/DeployMainBranch.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ jobs:
1111
uses: ./.github/workflows/DeployEverything.yml
1212
with:
1313
env: "Production"
14-
secrets:
14+
secrets:
15+
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
1516
AZURE_CREDENTIALS: ${{ secrets.AZURE_CREDENTIALS }}
1617
AZURE_STATIC_WEB_APPS_API_TOKEN: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
1718
TERRAFORM_STATE_ACCESS_KEY: ${{ secrets.TERRAFORM_STATE_ACCESS_KEY }}

0 commit comments

Comments
 (0)