add ping to container
Some checks failed
ci / build (push) Has been cancelled
ci / Tests & Checks (push) Failing after 4m46s

This commit is contained in:
CJ_Clippy 2025-02-12 22:48:17 -08:00
parent e94778e9ed
commit 1a493c7457

View File

@ -78,7 +78,7 @@ jobs:
# - name: wait for postgres # - name: wait for postgres
# run: sleep 60 # run: sleep 60
- name: Check postgres reachability - name: Check postgres reachability
run: ping -c 200 db run: apt update && apt install -y iputils-ping && ping -c 200 db
- name: postgres service check - name: postgres service check
run: PGPASSWORD=${{ secrets.DB_PASS }} psql -u ${{ secrets.DB_USER }} -D ${{ secrets.DB_NAME }} -h ${{ secrets.DB_HOST }} "SELECT * FROM vods;" run: PGPASSWORD=${{ secrets.DB_PASS }} psql -u ${{ secrets.DB_USER }} -D ${{ secrets.DB_NAME }} -h ${{ secrets.DB_HOST }} "SELECT * FROM vods;"