Skip to content

Commit

Permalink
Mount directory instead of file
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelmeister committed Jun 16, 2024
1 parent b088c5b commit 5b69551
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/test-postgres-initdb.d/create-ecamp3-test-database.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh

psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" -d postgres <<-EOSQL
CREATE DATABASE "ecamp3test";
GRANT ALL PRIVILEGES ON DATABASE "ecamp3test" TO $POSTGRES_USER;
CREATE DATABASE "ecamp3test1";
GRANT ALL PRIVILEGES ON DATABASE "ecamp3test1" TO $POSTGRES_USER;
CREATE DATABASE "ecamp3test2";
GRANT ALL PRIVILEGES ON DATABASE "ecamp3test2" TO $POSTGRES_USER;
EOSQL
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ jobs:
POSTGRES_PASSWORD: 'ecamp3'
POSTGRES_USER: 'ecamp3'
volumes:
- ${{ github.workspace }}/create-ecamp3-test-database.sql:/docker-entrypoint-initdb.d/create-ecamp3-test-database.sql
- ${{ github.workspace }}/.github/test-postgres-initdb.d:/docker-entrypoint-initdb.d
ports:
- '5432:5432'
options: >-
Expand Down

0 comments on commit 5b69551

Please sign in to comment.