From cae6a1883ad98f5ecbef2586f2fdb56b49a1c107 Mon Sep 17 00:00:00 2001 From: Malthe Borch Date: Wed, 28 Oct 2026 13:51:43 +0100 Subject: [PATCH 1/2] Use PGDATA dir --- .github/workflows/main.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2bd5062..a679b78 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,9 +8,6 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: -env: - PGDATADIR: /var/lib/postgresql/data - permissions: contents: read pages: write @@ -83,7 +80,7 @@ jobs: env: POSTGRES_PASSWORD: postgres options: >- - --mount type=tmpfs,destination=/var/lib/postgresql/data + --mount type=tmpfs,destination=/var/lib/postgresql --health-cmd pg_isready --health-interval 10s --health-timeout 5s @@ -100,7 +97,7 @@ jobs: steps: - run: | function set() { - docker exec ${{ job.services.postgres.id }} sh -c "echo $1=\'$2\' >> $PGDATADIR/postgresql.conf" + docker exec ${{ job.services.postgres.id }} sh -c 'printf "%s = '\''%s'\''\n" "$1" "$2" >> "$PGDATA/postgresql.conf"' _ "$1" "$2" } set ssl on set ssl_cert_file /etc/ssl/certs/ssl-cert-snakeoil.pem From e7aac79c86c4eec28b1b4fdc2fed845a6b28836f Mon Sep 17 00:00:00 2001 From: Malthe Borch Date: Wed, 28 Oct 2026 14:06:19 +0100 Subject: [PATCH 2/2] Increase timeout --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a679b78..4568b4a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -30,7 +30,7 @@ jobs: exit "$code" build: runs-on: ubuntu-latest - timeout-minutes: 1 + timeout-minutes: 3 steps: - uses: actions/checkout@v4 - name: NPM