Skip to content

Commit

Permalink
Update terraform-apply.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ZinxValkyria authored Mar 4, 2024
1 parent 28b477e commit 7a732e5
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/terraform-apply.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,26 @@
name: Terraform Apply
on:
workflow_dispatch:
workflow_call:
push:
branches:
- main
env:
TF_LOG: INFO
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
BUCKET_TF_STATE: ${{ secrets.BUCKET_TF_STATE }}
jobs:
terraform_apply:
deploy-infra:
name: Deploy infra
runs-on: ubuntu-latest
needs: terraform_plan
defaults:
run:
working-directory: terraform/
steps:
- name: Terraform apply
run: terraform apply --auto-approve
- name: Checkout
uses: actions/checkout@v4
- name: Terraform Init
run: terraform init
- name: Terraform Apply
run: terraform apply --auto-approve

0 comments on commit 7a732e5

Please sign in to comment.