Files
buzz/scripts/sprig-entrypoint.sh
npub1t2tgm7d8f995uqvmnm8h88sg3wnpp9a5xysjf6dg3tjmgt3ltulqdp8ehr 6f3490dd36 build: add Sprig agent image
Co-authored-by: npub1t2tgm7d8f995uqvmnm8h88sg3wnpp9a5xysjf6dg3tjmgt3ltulqdp8ehr <5a968df9a7494b4e019b9ecf739e088ba61097b4312124e9a88ae5b42e3f5f3e@buzz.block.builderlab.xyz>
Signed-off-by: npub1t2tgm7d8f995uqvmnm8h88sg3wnpp9a5xysjf6dg3tjmgt3ltulqdp8ehr <5a968df9a7494b4e019b9ecf739e088ba61097b4312124e9a88ae5b42e3f5f3e@buzz.block.builderlab.xyz>
2026-08-02 01:42:31 -04:00

17 lines
642 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
# Match desktop's URL-scoped git credential configuration without installing a
# helper globally (which would make it answer for unrelated remotes).
if [[ -n "${BUZZ_RELAY_URL:-}" ]]; then
relay_http_url="${BUZZ_RELAY_URL/#ws:/http:}"
relay_http_url="${relay_http_url/#wss:/https:}"
relay_http_url="${relay_http_url%/}"
git config --global "credential.${relay_http_url}/git.helper" \
/usr/local/bin/git-credential-nostr
git config --global "credential.${relay_http_url}/git.useHttpPath" true
fi
# The harness must receive Kubernetes' termination signal directly.
exec buzz-acp "$@"