fix: deploy hook git pull without writable global config

Use git -c safe.directory instead of git config --global in the
container; set HOME=/tmp for deploy-hook.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Frank Schwenk
2026-07-05 16:26:38 +02:00
parent 864c51e281
commit 3b182a0798
2 changed files with 8 additions and 4 deletions
+1
View File
@@ -24,6 +24,7 @@ services:
- .:/repo
- ./hooks:/etc/webhook:ro
environment:
- HOME=/tmp
- WEBHOOK_SECRET=${WEBHOOK_SECRET}
- DEPLOY_GIT_TOKEN=${DEPLOY_GIT_TOKEN:-}
- DEPLOY_BRANCH=${DEPLOY_BRANCH:-main}