From b8d531b26ca46587486b9af42fba9dd66d6143cb Mon Sep 17 00:00:00 2001 From: Franz Kuntke Date: Wed, 6 Aug 2025 14:43:21 +0000 Subject: [PATCH] ci(db-cleanup): Fix connection to STACKIT PostgreSQL databases and add `openxchange` bucket --- .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 304c847b..c1e2c09f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -385,7 +385,8 @@ db-cleanup: "STACKIT") # In case of STACKIT resources the db content should just be dropped echo "[psql] [${ENV_DATABASE}] DROP OWNED BY ${PGUSER} in ${POSTGRES_DATABASE} on ${PGHOST}" - psql -c "DROP OWNED BY ${PGUSER}" || true; + PGDATABASE=${POSTGRES_DATABASE} # env var PGDATABASE is interpreted by psql + psql -c "DROP OWNED BY ${PGUSER};" || true; ;; "RUN") # Usually, e.g. in "RUN" cluster, databases can simply be dropped and recreated @@ -403,7 +404,7 @@ db-cleanup: done; # Cleanup Objectstore - | - export BUCKETS="migrations nextcloud openproject nubus notes" + export BUCKETS="migrations nextcloud openproject nubus notes openxchange" export AWS_DEFAULT_REGION="" export AWS_ENDPOINT="" export AWS_ACCESS_KEY_ID=""