Skip to content

Commit

Permalink
chore: Add VERBOSITY=terse flag to db sync script in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed Oct 25, 2024
1 parent 2220aa8 commit 53547b4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/sync-staging-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,15 @@ jobs:
- name: Run sync script
run: |
{
docker run --rm -v "$(pwd)/scripts/seed-database:/app" --workdir="/app" postgis/postgis:12-3.0-alpine "./container.sh" "${STAGING_PG_URL}" "${PRODUCTION_PG_URL_FOR_USER_GITHUB_ACTIONS}" "reset_flows"
# Create temp .psqlrc file to hold config
echo '\set VERBOSITY terse' > /tmp/.psqlrc
docker run --rm \
-v /tmp/.psqlrc:/root/.psqlrc \
-v "$(pwd)/scripts/seed-database:/app" \
--workdir="/app" \
postgis/postgis:12-3.0-alpine \
"./container.sh" "${STAGING_PG_URL}" "${PRODUCTION_PG_URL_FOR_USER_GITHUB_ACTIONS}" "reset_flows"
} || {
echo "Database sync failed!"
exit 1
Expand Down

0 comments on commit 53547b4

Please sign in to comment.