mirror of
https://github.com/samply/bridgehead.git
synced 2025-10-14 21:50: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() {
|
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
|
# Map the origin of the git repository /etc/bridgehead to the prefix recognized by Secret Sync
|
||||||
local gitlab
|
local gitlab
|
||||||
case "$(git -C /etc/bridgehead remote get-url origin)" in
|
case "$(git -C /etc/bridgehead remote get-url origin)" in
|
||||||
@@ -394,7 +397,7 @@ function secret_sync_gitlab_token() {
|
|||||||
else
|
else
|
||||||
log "WARN" "Secret Sync failed"
|
log "WARN" "Secret Sync failed"
|
||||||
# Remove the git credential helper
|
# Remove the git credential helper
|
||||||
git -C /etc/bridgehead config --unset credential.helper
|
git -C /etc/bridgehead config --unset credential.helpera
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# In the past the git credential helper was also set for /srv/docker/bridgehead but never used.
|
# In the past the git credential helper was also set for /srv/docker/bridgehead but never used.
|
||||||
|
Reference in New Issue
Block a user