Fix gitea-runner compatibility for deploy workflow
Some checks failed
Deploy with Docker Compose / deploy (push) Failing after 1s

Mount the deploy directory at the same absolute path in the runner
container so docker compose bind mounts resolve correctly on the host
Docker daemon. Add git safe.directory config to avoid ownership errors
when the runner (root) operates on host-owned files.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-07 12:45:52 +01:00
parent f027506c87
commit 8a6e34dd69
2 changed files with 4 additions and 1 deletions

View File

@@ -10,7 +10,9 @@ jobs:
steps:
- name: Pull changes
working-directory: /home/adamf/deploy/web_server
run: git pull gitea main
run: |
git config --global --add safe.directory /home/adamf/deploy/web_server
git pull gitea main
- name: Run docker compose up
working-directory: /home/adamf/deploy/web_server