Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
crlssn committed Nov 12, 2024
1 parent db45784 commit 6794298
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/actions/apply/terraform/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
name: Apply Terraform

inputs:
aws_access_key_id:
description: "AWS Access Key ID"
required: true
aws_secret_access_key:
description: "AWS Secret Access Key"
required: true
db_username:
description: "Database Username"
required: true
db_password:
description: "Database Password"
required: true

runs:
using: 'composite'
steps:
Expand All @@ -18,7 +32,7 @@ runs:
working-directory: ./infra
shell: bash
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
TF_VAR_db_username: ${{ secrets.TF_VAR_DB_USERNAME }}
TF_VAR_db_password: ${{ secrets.TF_VAR_DB_PASSWORD }}
AWS_ACCESS_KEY_ID: ${{ inputs.aws_access_key_id }}
AWS_SECRET_ACCESS_KEY: ${{ inputs.aws_secret_access_key }}
TF_VAR_db_username: ${{ inputs.db_username }}
TF_VAR_db_password: ${{ inputs.db_password }}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ jobs:

- 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
Expand Down
File renamed without changes.

0 comments on commit 6794298

Please sign in to comment.