Skip to content

Commit

Permalink
pass in env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
emmyoop committed Mar 4, 2025
1 parent 73f342b commit 3f3a81d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ jobs:
- name: Run postgres setup script
run: |
./test/setup_db.sh
env:
PGHOST: localhost
PGPORT: 5432
PGPASSWORD: password

# - name: Set up postgres (linux)
# # if: runner.os == 'Linux'
Expand Down
2 changes: 1 addition & 1 deletion test/setup_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ PGUSER="${PGUSER:-postgres}"
export PGUSER
PGPORT="${PGPORT:-5432}"
export PGPORT
PGHOST="${PGHOST:-postgres}"
PGHOST="${PGHOST:-localhost}"

for i in {1..10}; do
if pg_isready -h "${PGHOST}" -p "${PGPORT}" -U "${PGUSER}" ; then
Expand Down

0 comments on commit 3f3a81d

Please sign in to comment.