Skip to content

Commit

Permalink
fix the fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
howieandersen committed Sep 23, 2024
1 parent 2c42beb commit 054a227
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/infra-plan-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
uses: actions/checkout@v4

- name: Terraform Set TFVARS
run: echo "TF_VARS_FILE=$(echo ${{ inputs.tf_state }} | tr '[:upper:]' '[:lower:]').tfvars" >> $GITHUB_ENV
run: echo "TF_VARS_FILE=$(echo ${{ inputs.environment }} | tr '[:upper:]' '[:lower:]').tfvars" >> $GITHUB_ENV

- name: Terraform Initialize
uses: altinn/altinn-platform/actions/terraform/plan@main
Expand All @@ -42,6 +42,6 @@ jobs:
arm_client_id: ${{ vars.ARM_CLIENT_ID }}
arm_subscription_id: ${{ vars.ARM_SUBSCRIPTION_ID }}

tf_state_name: ${{ env.TF_STATE_NAME }}
tf_state_name: ${{ inputs.tf_state }}
tf_args: -var environment=${{ inputs.environment }} -var-file=${{ env.TF_VARS_FILE }}
gh_token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions infra/deploy/init/at22.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
environment = "at22"
instance = "001"
2 changes: 2 additions & 0 deletions infra/deploy/init/at23.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
environment = "at23"
instance = "001"
2 changes: 2 additions & 0 deletions infra/deploy/init/at24.tfvars
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
environment = "at24"
instance = "001"

0 comments on commit 054a227

Please sign in to comment.