mirror of
https://github.com/samply/bridgehead.git
synced 2025-10-14 12:30:25 +02:00
deactivate secret sync (which never worked for itcc/cce)
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user