Skip to content

Commit 2b158bb

Browse files
authored
fix: CI-Infra missing role binding and variable typo; replace inline -var with global TF_VAR_
1 parent f7c0b19 commit 2b158bb

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/ci-infra.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ jobs:
4444
run: terraform init
4545

4646
- name: Terraform Apply (Sync)
47-
run: |
48-
terraform apply -auto-approve \
49-
-var="env=${{env.ENV}}" \
50-
-var="project_id=${{ secrets.GCP_PROJECT_ID}}" \
51-
-var="region=${{env.REGION}}" \
52-
-var="alert_email_map=${{ secrets.ALERT_EMAIL_MAP }}"
47+
env:
48+
TF_VAR_environment: ${{ env.ENV }}
49+
TF_VAR_project_id: ${{ secrets.GCP_PROJECT_ID }}
50+
TF_VAR_region: ${{ env.REGION }}
51+
TF_VAR_alert_email_map: ${{ secrets.ALERT_EMAIL_MAP }}
52+
run: terraform apply -auto-approve

0 commit comments

Comments
 (0)