diff --git a/lib/functions.sh b/lib/functions.sh index 379e122..733d37d 100644 --- a/lib/functions.sh +++ b/lib/functions.sh @@ -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.