From f3fa1ce712377bfede72b197023724e6f65f21db Mon Sep 17 00:00:00 2001 From: janskiba Date: Wed, 7 Feb 2024 16:05:26 +0000 Subject: [PATCH] fix: secret sync account for minimal override --- lib/functions.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/functions.sh b/lib/functions.sh index ee2cf2c..7ec79ce 100644 --- a/lib/functions.sh +++ b/lib/functions.sh @@ -279,7 +279,11 @@ function sync_secrets() { fi mkdir -p /var/cache/bridgehead/secrets/ touch /var/cache/bridgehead/secrets/oidc - $COMPOSE -p secret_sync -f ./minimal/docker-compose.yml up -d forward_proxy + local override="" + if [ -f "minimal/docker-compose.override.yml" ]; then + override+=" -f ./minimal/docker-compose.override.yml" + fi + $COMPOSE -p secret_sync -f ./minimal/docker-compose.yml $override up -d forward_proxy # The oidc provider will need to be switched based on the project at some point I guess docker run --rm \ --network secret_sync_default \