deactivate secret sync (which never worked for itcc/cce)

This commit is contained in:
Pierre Delpy
2025-10-14 08:28:56 +02:00
parent 4a0f2e609d
commit 3c5b8a70b1

View File

@@ -337,6 +337,9 @@ function sync_secrets() {
}
function secret_sync_gitlab_token() {
if [[ "$PROJECT" != "dktk" && "$PROJECT" != "bbmri" ]]; then
return
fi
# Map the origin of the git repository /etc/bridgehead to the prefix recognized by Secret Sync
local gitlab
case "$(git -C /etc/bridgehead remote get-url origin)" in
@@ -394,7 +397,7 @@ function secret_sync_gitlab_token() {
else
log "WARN" "Secret Sync failed"
# Remove the git credential helper
git -C /etc/bridgehead config --unset credential.helper
git -C /etc/bridgehead config --unset credential.helpera
fi
# In the past the git credential helper was also set for /srv/docker/bridgehead but never used.