Skip to content

Commit

Permalink
add migrate-db task
Browse files Browse the repository at this point in the history
  • Loading branch information
marshall007 committed Jul 24, 2024
1 parent 41a86df commit f926151
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions tasks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,5 @@ tasks:
- task: setup:create-doug-user
- task: create-sq-test-bundle
- task: deploy:test-bundle
- task: test:migrate-db
- task: test:all
7 changes: 7 additions & 0 deletions tasks/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,10 @@ tasks:
dir: tests
- cmd: npx playwright test
dir: tests

- name: migrate-db
actions:
- description: Perform DB migrations if necessary
cmd: |
STATUS=$(curl -XPOST -s 'https://sonarqube.uds.dev/api/system/migrate_db' | ./uds zarf tools yq '.state')
echo "SonarQube migration state: ${STATUS}"

0 comments on commit f926151

Please sign in to comment.