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
when: *slow_check_paths
# Create database not owned by default user, so `DROP OWNED` works
create_database:
# `DROP OWNED` doesn't work for default user
create_database_user:
image: postgres:16-alpine
environment:
PGUSER: lemmy
PGUSER: postgres
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: