Skip to content

Commit

Permalink
add postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
selfagency committed Jan 27, 2025
1 parent 3b0798d commit 5918004
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,20 @@ on:
jobs:
build:
runs-on: ubuntu-latest

services:
postgres:
image: postgres:13
env:
POSTGRES_USER: ofs
POSTGRES_PASSWORD: ofstemp12345
POSTGRES_DB: ofs_data
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -26,6 +39,7 @@ jobs:
with:
cache: true
push: true
env: DATABASE_URL=postgres://ofs:ofstemp12345@localhost:5432/ofs_data
tags: |
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{ github.sha }}
Expand Down

0 comments on commit 5918004

Please sign in to comment.