Skip to content

Delete .github/workflows/checkout.yml #12

Delete .github/workflows/checkout.yml

Delete .github/workflows/checkout.yml #12

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:
deploy-infra:
name: Deploy infra
runs-on: ubuntu-latest
defaults:
run:
working-directory: terraform/
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Terraform Init
run: terraform init
- name: Terraform Apply
run: terraform apply --auto-approve