fix: Manually gather files from default first

This commit is contained in:
Philip Gaber
2025-07-16 12:04:54 +02:00
parent d4826f74a5
commit 48c58c1e12

View File

@@ -292,9 +292,16 @@ db-cleanup:
exit 1
;;
esac
# Gather all files that contain the "database:" keyword
# Because of the fact that default < dev, this behaves like the statement before (overwrite)
- "export FILES=$(grep -r \"databases:\" \"${CI_PROJECT_DIR}/helmfile/environments/\" | awk -F ':' '{print $1}')"
# First: Gather all files that contain the "database:" keyword in the default environment
- |
export FILES="$(grep -r 'databases:' "${CI_PROJECT_DIR}/helmfile/environments/default" |
awk -F ':' '{print $1}')"
# Second: Gather all files that contain the "database:" keyword in the dev environment
# where the adjustments from opendesk-env are placed
- |
export FILES="${FILES} $(grep -r 'databases:' "${CI_PROJECT_DIR}/helmfile/environments/dev" |
awk -F ':' '{print $1}')"
- echo "${FILES[@]}"
# Cleanup MariaDB
- "export MARIADB_HOST=\"\""
- "export MARIADB_PORT=\"\""