mirror of
https://gitlab.opencode.de/bmi/opendesk/deployment/opendesk.git
synced 2025-12-06 15:31:38 +01:00
fix: Manually gather files from default first
This commit is contained in:
@@ -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=\"\""
|
||||
|
||||
Reference in New Issue
Block a user