From af94d28b6afbd51adf4c7c4a2023503ef7be4e80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorsten=20Ro=C3=9Fner?= Date: Sun, 20 Jul 2025 19:22:52 +0200 Subject: [PATCH] ci(dbcleanup): Fix RUN cluster cleanup --- .gitlab-ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4f3d28f3..304c847b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -83,11 +83,12 @@ variables: FLUSH_EXTERNAL_SERVICES_TYPE: description: > Select the type of external services (e.g. "RUN", or "STACKIT"), as they require different - cleanup strategies. Requires `FLUSH_EXTERNAL_SERVICES_BEFORE=yes`. - value: "STACKIT" + cleanup strategies. Requires `FLUSH_EXTERNAL_SERVICES_BEFORE=yes` and `ENV_STOP_BEFORE=yes`. + value: "CHANGE ME" options: - "RUN" - "STACKIT" + - "CHANGE ME" DEBUG_ENABLED: description: > Allows to set `debug.enabled` to true for a deployment, needs to be supported by stage specific @@ -386,7 +387,7 @@ db-cleanup: echo "[psql] [${ENV_DATABASE}] DROP OWNED BY ${PGUSER} in ${POSTGRES_DATABASE} on ${PGHOST}" psql -c "DROP OWNED BY ${PGUSER}" || true; ;; - *) + "RUN") # Usually, e.g. in "RUN" cluster, databases can simply be dropped and recreated echo "[psql] [${ENV_DATABASE}] DROP ${POSTGRES_DATABASE} on ${PGHOST}" psql -c "DROP DATABASE ${POSTGRES_DATABASE}" || true;