fix: secret sync account for minimal override

This commit is contained in:
janskiba 2024-02-07 16:05:26 +00:00 committed by juarez
parent b241feecdb
commit f3fa1ce712
1 changed files with 5 additions and 1 deletions

View File

@ -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 \