Skip to content

Commit

Permalink
Add db container in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
fwilhe committed May 3, 2024
1 parent 5e92532 commit 60fed9d
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,27 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: read
env:
PGUSER: glvd
PGDATABASE: glvd
PGPASSWORD: glvd
PGHOST: postgres
PGPORT: 5432

services:
postgres:
image: ghcr.io/gardenlinux/glvd-postgres:edgesampledata
env:
POSTGRES_USER: glvd
POSTGRES_DB: glvd
POSTGRES_PASSWORD: glvd
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432

steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 60fed9d

Please sign in to comment.