diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 1336517..d13c40b 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -14,7 +14,8 @@ jobs: GIT_SSH_COMMAND: "ssh -o StrictHostKeyChecking=no" run: | git config --global --add safe.directory /home/adamf/deploy/web_server - git pull ssh://git@localhost:2222/adamf/web_server.git main + git fetch ssh://git@localhost:2222/adamf/web_server.git main + git reset --hard FETCH_HEAD - name: Run docker compose up working-directory: /home/adamf/deploy/web_server