Skip to content

Merge pull request #17 from postech-5soat-grupo-25/alanmmolina/update… #22

Merge pull request #17 from postech-5soat-grupo-25/alanmmolina/update…

Merge pull request #17 from postech-5soat-grupo-25/alanmmolina/update… #22

Workflow file for this run

name: 'Terraform Database Deploy'
on:
push:
branches:
- main
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
jobs:
terraform_apply:
name: Terraform Apply
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Terraform Apply
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
run: |
terraform init
terraform apply -auto-approve