Skip to content

Commit 1e7288a

Browse files
add env back
1 parent 81ed3a8 commit 1e7288a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/backend-integration-azure-deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
uses: ./.github/workflows/lib-azure-deploy.yml
2424
with:
2525
work-dir: backend-integration
26+
environment: ${{ vars.BACKEND_INTEGRATION_ENV_NAME }}
2627
secrets:
2728
SELF_HOSTED_RUNNER_TOKEN: ${{ secrets.SELF_HOSTED_RUNNER_TOKEN }}
2829
AZURE_CLIENT_ID: ${{ vars.BACKEND_INTEGRATION_CLIENT_ID }}

.github/workflows/lib-azure-deploy.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
work-dir:
77
required: true
88
type: string
9+
environment:
10+
required: true
11+
type: string
912

1013
secrets:
1114
SELF_HOSTED_RUNNER_TOKEN:
@@ -43,12 +46,12 @@ jobs:
4346
needs: [self-hosted-status]
4447
timeout-minutes: 10
4548
runs-on: ${{ contains(needs.self-hosted-status.outputs.runner-status, 'online') && 'self-hosted' || 'ubuntu-latest' }}
46-
environment: ${{ secrets.AZURE_ENV_NAME }}
49+
environment: ${{ inputs.environment }}
4750
env:
4851
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
4952
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
5053
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
51-
AZURE_ENV_NAME: ${{ secrets.AZURE_ENV_NAME }}
54+
AZURE_ENV_NAME: ${{ inputs.environment }}
5255
AZURE_LOCATION: ${{ secrets.AZURE_LOCATION }}
5356

5457
steps:

0 commit comments

Comments
 (0)