Skip to content

Commit

Permalink
rewrite tempalte subs. variables to vars.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasisnes committed Jul 15, 2024
1 parent 5942176 commit 0cd1493
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/infrastructure-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ permissions:
jobs:
plan:
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
Expand All @@ -36,14 +37,15 @@ jobs:
oidc_type: environment
oidc_value: ${{ inputs.environment }}

arm_client_id: ${{ variables.ARM_CLIENT_ID }}
arm_subscription_id: ${{ variables.ARM_SUBSCRIPTION_ID }}
arm_client_id: ${{ vars.ARM_CLIENT_ID }}
arm_subscription_id: ${{ vars.ARM_SUBSCRIPTION_ID }}

tf_state_name: ${{ env.TF_STATE_NAME }}
gh_token: ${{ secrets.GITHUB_TOKEN }}

apply:
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
if: inputs.tf_should_apply
steps:
- name: Checkout Repository
Expand All @@ -56,8 +58,8 @@ jobs:
oidc_type: environment
oidc_value: ${{ inputs.environment }}

arm_client_id: ${{ variables.ARM_CLIENT_ID }}
arm_subscription_id: ${{ variables.ARM_SUBSCRIPTION_ID }}
arm_client_id: ${{ vars.ARM_CLIENT_ID }}
arm_subscription_id: ${{ vars.ARM_SUBSCRIPTION_ID }}

tf_state_name: ${{ env.TF_STATE_NAME }}
gh_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 0cd1493

Please sign in to comment.