Skip to content

deploy

deploy #21

Workflow file for this run

name: Deployment
on:
release:
types: [published]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Apply Terraform
uses: ./.github/actions/apply/terraform
with:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
db_username: ${{ secrets.TF_VAR_DB_USERNAME }}
db_password: ${{ secrets.TF_VAR_DB_PASSWORD }}
- name: Migrate database
uses: ./.github/actions/migrate/database
- name: Deploy web app to S3
uses: ./.github/actions/deploy/web-app