mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-30 05:11:03 +00:00
create separate database in ci
This commit is contained in:
parent
0f373563b2
commit
728b6d49d7
1 changed files with 14 additions and 1 deletions
|
@ -133,6 +133,19 @@ steps:
|
|||
- diff config/defaults.hjson config/defaults_current.hjson
|
||||
when: *slow_check_paths
|
||||
|
||||
# Create database not owned by default user, so `DROP OWNED` works
|
||||
create_database:
|
||||
image: postgres:16-alpine
|
||||
environment:
|
||||
PGUSER: lemmy
|
||||
PGPASSWORD: password
|
||||
PGHOST: database
|
||||
PGDATABASE: lemmy
|
||||
commands:
|
||||
- psql -c "CREATE USER lemmy WITH PASSWORD 'password' SUPERUSER;"
|
||||
- psql -c "CREATE DATABASE lemmy WITH OWNER lemmy;"
|
||||
when: *slow_check_paths
|
||||
|
||||
check_db_perf_tool:
|
||||
image: *rust_image
|
||||
environment:
|
||||
|
@ -272,5 +285,5 @@ services:
|
|||
database:
|
||||
image: postgres:16-alpine
|
||||
environment:
|
||||
POSTGRES_USER: lemmy
|
||||
POSTGRES_USER: postgres
|
||||
POSTGRES_PASSWORD: password
|
||||
|
|
Loading…
Reference in a new issue