Skip to content

Commit

Permalink
Add input to enable DB migrations step
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelhwilliams committed Dec 6, 2024
1 parent 7befc2b commit 7799c4d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/standard-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ on:
environment:
required: true
type: string
run_db_migrations:
required: false
default: false
type: boolean
image_location:
description: "Location of the image to deploy."
type: string
Expand Down Expand Up @@ -65,6 +69,7 @@ jobs:
yq -i ".image.location = \"${{ inputs.image_location }}\"" copilot/fsd-${{ inputs.app_name }}/manifest.yml
- name: Run database migrations
if: ${{ inputs.run_db_migrations }}
run: scripts/migration-task-script.py ${{ inputs.environment }} ${{ inputs.image_location }}

- name: Copilot ${{ inputs.environment }} deploy
Expand Down

0 comments on commit 7799c4d

Please sign in to comment.