ci: retry failing pg migrate step
This commit is contained in:
parent
26ef885642
commit
af26ff68da
13
.github/workflows/dev-db-nightly.yml
vendored
13
.github/workflows/dev-db-nightly.yml
vendored
|
@ -124,9 +124,16 @@ jobs:
|
|||
ref: 'feat/postgres'
|
||||
|
||||
- name: Migrate
|
||||
run: |
|
||||
chmod +x ./docker/scripts/db-pg-migrate.sh
|
||||
sh ./docker/scripts/db-pg-migrate.sh
|
||||
uses: nick-fields/retry@v2
|
||||
with:
|
||||
timeout_minutes: 30
|
||||
max_attempts: 3
|
||||
command: |
|
||||
chmod +x ./docker/scripts/db-pg-migrate.sh
|
||||
sh ./docker/scripts/db-pg-migrate.sh
|
||||
on_retry_command: |
|
||||
psql -U django -h pgdb -d ietf -v ON_ERROR_STOP=1 -c '\x' -c 'DROP SCHEMA ietf_utf8 CASCADE;'
|
||||
rm -f cast.load
|
||||
|
||||
- name: Upload DB Dump
|
||||
uses: actions/upload-artifact@v3
|
||||
|
|
Loading…
Reference in a new issue