File tree Expand file tree Collapse file tree 3 files changed +3
-19
lines changed
Expand file tree Collapse file tree 3 files changed +3
-19
lines changed Original file line number Diff line number Diff line change @@ -19,18 +19,13 @@ jobs:
1919 runs-on : ubuntu-latest
2020 services :
2121 postgres :
22- image : ' postgres:17-alpine'
22+ image : ' ghcr.io/${{ github.repository }}/ postgres:17-alpine-logical '
2323 env :
2424 POSTGRES_PASSWORD : password
2525 ports :
2626 - 5432:5432
2727
2828 steps :
29- - name : ' Set PG settings'
30- run : |
31- docker exec ${{ job.services.postgres.id }} sh -c 'echo "wal_level=logical" >> /var/lib/postgresql/data/postgresql.conf'
32- docker restart ${{ job.services.postgres.id }}
33-
3429 - uses : docker/setup-buildx-action@v3
3530
3631 - uses : actions/checkout@v4
Original file line number Diff line number Diff line change 3333 DATABASE_URL :
' postgresql://postgres:[email protected] :54323/postgres?sslmode=disable' 3434 services :
3535 postgres :
36- image : postgres:14 -alpine
36+ image : ' ghcr.io/${{ github.repository }}/ postgres:17 -alpine-logical '
3737 env :
3838 POSTGRES_PASSWORD : password
3939 options : >-
4545 - 54323:5432
4646 steps :
4747 - uses : actions/checkout@v4
48- - name : ' Set PG settings'
49- run : |
50- docker exec ${{ job.services.postgres.id }} sh -c 'echo "wal_level=logical" >> /var/lib/postgresql/data/postgresql.conf'
51- docker restart ${{ job.services.postgres.id }}
5248
5349 - uses : erlef/setup-beam@v1
5450 with :
Original file line number Diff line number Diff line change 3939 POSTGRES_VERSION : ' ${{ matrix.postgres_version }}0000'
4040 services :
4141 postgres :
42- image : ' postgres:${{ matrix.postgres_version }}-alpine'
42+ image : ' ghcr.io/${{ github.repository }}/ postgres:${{ matrix.postgres_version }}-alpine-logical '
4343 env :
4444 POSTGRES_PASSWORD : password
4545 options : >-
6565 steps :
6666 - uses : actions/checkout@v4
6767
68- # https://github.com/orgs/community/discussions/126453#discussioncomment-11414956
69- - name : Set PG settings
70- run : |
71- docker exec ${{ job.services.postgres.id }} sh -c 'psql -U postgres -c "ALTER SYSTEM SET wal_level = '"'"'logical'"'"';"'
72- docker exec ${{ job.services.postgres.id }} sh -c 'psql -U postgres -c "ALTER SYSTEM SET max_replication_slots = 100;"'
73- docker restart ${{ job.services.postgres.id }}
74-
7568 - name : Seed the database
7669 run : psql -d postgresql://postgres:password@localhost:54321/postgres?sslmode=disable -f dev/init.sql
7770
You can’t perform that action at this time.
0 commit comments