Update .woodpecker.yml

This commit is contained in:
dullbananas 2024-05-23 11:57:28 -07:00 committed by GitHub
parent 728b6d49d7
commit f252de1a6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -133,17 +133,16 @@ 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 # `DROP OWNED` doesn't work for default user
create_database: create_database_user:
image: postgres:16-alpine image: postgres:16-alpine
environment: environment:
PGUSER: lemmy PGUSER: postgres
PGPASSWORD: password PGPASSWORD: password
PGHOST: database PGHOST: database
PGDATABASE: lemmy PGDATABASE: lemmy
commands: commands:
- psql -c "CREATE USER lemmy WITH PASSWORD 'password' SUPERUSER;" - psql -c "CREATE USER lemmy WITH PASSWORD 'password' SUPERUSER;"
- psql -c "CREATE DATABASE lemmy WITH OWNER lemmy;"
when: *slow_check_paths when: *slow_check_paths
check_db_perf_tool: check_db_perf_tool: