Use fetch+reset in deploy workflow to avoid merge conflicts
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 48s
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 48s
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user