We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 708a6a6 commit cfe358eCopy full SHA for cfe358e
.github/workflows/terraform.yml
@@ -66,10 +66,11 @@ jobs:
66
terraform workspace select prod
67
68
- name: Terraform Plan for Prod
69
+ if: github.ref == 'refs/heads/main' && github.event_name == 'push'
70
id: terraform-plan-prod
71
run: cd infra && terraform plan -var-file="./envs/prod/terraform.tfvars" -out=prod.plan
72
73
- name: Terraform Apply for Prod
- id: terraform-apply-prod
74
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
75
+ id: terraform-apply-prod
76
run: cd infra && terraform apply "prod.plan"
0 commit comments