Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions .github/workflows/docker_image_smoketest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,13 @@ jobs:
runs-on: ubuntu-latest
services:
postgres:
image: 'postgres:17-alpine'
image: 'ghcr.io/${{ github.repository }}/postgres:17-alpine-logical'
env:
POSTGRES_PASSWORD: password
ports:
- 5432:5432

steps:
- name: 'Set PG settings'
run: |
docker exec ${{ job.services.postgres.id }} sh -c 'echo "wal_level=logical" >> /var/lib/postgresql/data/postgresql.conf'
docker restart ${{ job.services.postgres.id }}

- uses: docker/setup-buildx-action@v3

- uses: actions/checkout@v4
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/elixir_client_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
DATABASE_URL: 'postgresql://postgres:[email protected]:54323/postgres?sslmode=disable'
services:
postgres:
image: postgres:14-alpine
image: 'ghcr.io/${{ github.repository }}/postgres:17-alpine-logical'
env:
POSTGRES_PASSWORD: password
options: >-
Expand All @@ -45,10 +45,6 @@ jobs:
- 54323:5432
steps:
- uses: actions/checkout@v4
- name: 'Set PG settings'
run: |
docker exec ${{ job.services.postgres.id }} sh -c 'echo "wal_level=logical" >> /var/lib/postgresql/data/postgresql.conf'
docker restart ${{ job.services.postgres.id }}

- uses: erlef/setup-beam@v1
with:
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/elixir_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
POSTGRES_VERSION: '${{ matrix.postgres_version }}0000'
services:
postgres:
image: 'postgres:${{ matrix.postgres_version }}-alpine'
image: 'ghcr.io/${{ github.repository }}/postgres:${{ matrix.postgres_version }}-alpine-logical'
env:
POSTGRES_PASSWORD: password
options: >-
Expand All @@ -65,13 +65,6 @@ jobs:
steps:
- uses: actions/checkout@v4

# https://github.com/orgs/community/discussions/126453#discussioncomment-11414956
- name: Set PG settings
run: |
docker exec ${{ job.services.postgres.id }} sh -c 'psql -U postgres -c "ALTER SYSTEM SET wal_level = '"'"'logical'"'"';"'
docker exec ${{ job.services.postgres.id }} sh -c 'psql -U postgres -c "ALTER SYSTEM SET max_replication_slots = 100;"'
docker restart ${{ job.services.postgres.id }}

- name: Seed the database
run: psql -d postgresql://postgres:password@localhost:54321/postgres?sslmode=disable -f dev/init.sql

Expand Down