From ffe21da2bef5c62d07cb49ed9fc5fbc133fc2117 Mon Sep 17 00:00:00 2001 From: Dull Bananas Date: Sat, 16 Nov 2024 22:33:59 -0700 Subject: [PATCH] move create_database_user woodpecker step to make diff less weird --- .woodpecker.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 98d080a8c..a0115d08a 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -126,18 +126,6 @@ steps: - diff config/defaults.hjson config/defaults_current.hjson when: *slow_check_paths - # `DROP OWNED` doesn't work for default user - create_database_user: - image: postgres:16-alpine - environment: - PGUSER: postgres - PGPASSWORD: password - PGHOST: database - PGDATABASE: lemmy - commands: - - psql -c "CREATE USER lemmy WITH PASSWORD 'password' SUPERUSER;" - when: *slow_check_paths - cargo_clippy: image: *rust_image environment: @@ -156,6 +144,18 @@ steps: - mv target/debug/lemmy_server target/lemmy_server when: *slow_check_paths + # `DROP OWNED` doesn't work for default user + create_database_user: + image: postgres:16-alpine + environment: + PGUSER: postgres + PGPASSWORD: password + PGHOST: database + PGDATABASE: lemmy + commands: + - psql -c "CREATE USER lemmy WITH PASSWORD 'password' SUPERUSER;" + when: *slow_check_paths + check_diesel_schema: image: *rust_image environment: