mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-12 05:54:51 +00:00
create separate database in ci
This commit is contained in:
parent
0f373563b2
commit
728b6d49d7
|
@ -133,6 +133,19 @@ steps:
|
||||||
- diff config/defaults.hjson config/defaults_current.hjson
|
- diff config/defaults.hjson config/defaults_current.hjson
|
||||||
when: *slow_check_paths
|
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:
|
check_db_perf_tool:
|
||||||
image: *rust_image
|
image: *rust_image
|
||||||
environment:
|
environment:
|
||||||
|
@ -272,5 +285,5 @@ services:
|
||||||
database:
|
database:
|
||||||
image: postgres:16-alpine
|
image: postgres:16-alpine
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_USER: lemmy
|
POSTGRES_USER: postgres
|
||||||
POSTGRES_PASSWORD: password
|
POSTGRES_PASSWORD: password
|
||||||
|
|
Loading…
Reference in a new issue