diff --git a/.github/workflows/terraform-apply.yml b/.github/workflows/terraform-apply.yml new file mode 100644 index 0000000..fdcff1f --- /dev/null +++ b/.github/workflows/terraform-apply.yml @@ -0,0 +1,27 @@ +name: Terraform Apply + +on: + push: + branches: [ main ] + +permissions: + contents: read + +jobs: + apply: + name: Terraform Apply + runs-on: ubuntu-latest + environment: ${{ github.event.repository.name }} + steps: + - uses: actions/checkout@v4 + + - name: Setup Terraform + uses: hashicorp/setup-terraform@v3 + with: + terraform_version: "1.7.0" + + - name: Terraform Init + run: terraform init + + - name: Terraform Apply + run: terraform apply -auto-approve \ No newline at end of file