Skip to content
Merged
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
9 changes: 3 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -33,7 +30,7 @@ jobs:
exit "$code"
build:
runs-on: ubuntu-latest
timeout-minutes: 1
timeout-minutes: 3
steps:
- uses: actions/checkout@v4
- name: NPM
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
Loading