diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 4ca966c..91d04bd 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index f9129fc..8f35e8c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -187,6 +187,7 @@ services: - ./gitea-runner/config.yaml:/config.yaml - ./gitea-runner/data:/data - /var/run/docker.sock:/var/run/docker.sock # WARNING: Docker socket mount gives container host-level access. Runner is in 'disabled' profile to mitigate risk. + - /home/adamf/deploy/web_server:/home/adamf/deploy/web_server # Same path on host and container so docker compose bind mounts resolve correctly restart: unless-stopped networks: - app-network