Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add flag to reset and reseed databases #255

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ on:
- 'Test2'
- 'Pre-production'
- 'Production'
reset_and_reseed_databases:
description: Choose to reset all the databases and reseed
default: true
type: boolean

permissions:
id-token: write
Expand Down Expand Up @@ -88,7 +92,7 @@ jobs:
dotnet_version: ${{ matrix.dotnet_version_override || vars.DOTNET_VERSION }}

reset-databases:
if: startsWith(inputs.environment, 'Test')
if: startsWith(inputs.environment, 'Test') && inputs.reset_and_reseed_databases
name: Reset the ${{ matrix.display_name }} database
needs: [ build-projects-upload-artifacts ]
strategy:
Expand Down Expand Up @@ -278,7 +282,7 @@ jobs:
secrets: inherit

seed-databases:
if: startsWith(inputs.environment, 'Test')
if: startsWith(inputs.environment, 'Test') && inputs.reset_and_reseed_databases
name: Seed the ${{ matrix.display_name }} database
needs: [ deploy-api-services, deploy-ui-services, deploy-functions ]
strategy:
Expand Down
Loading