Skip to content

Commit

Permalink
Switch psql to postgres user
Browse files Browse the repository at this point in the history
  • Loading branch information
mcarans committed Apr 28, 2024
1 parent f923547 commit 55af5b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/db_export.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
mkdir database
docker exec -t postgres-container pg_dump -U postgres -Fc hapi -f hapi_db.pg_restore
docker cp postgres-container:/hapi_db.pg_restore database/hapi_db.pg_restore
docker exec -t postgres-container psql -d hapi -c "copy(select * from operational_presence_view) TO 'operational_presence.csv' (FORMAT csv, DELIMITER ',', HEADER);"
docker exec -t postgres-container psql -U postgres -d hapi -c "copy(select * from operational_presence_view) TO 'operational_presence.csv' (FORMAT csv, DELIMITER ',', HEADER);"
docker cp postgres-container:/operational_presence.csv database/operational_presence.csv
- name: Commit updated DB export
Expand Down

0 comments on commit 55af5b1

Please sign in to comment.