ci: fix deploy — git fetch + reset --hard origin/main antes del rebuild
Deploy / deploy (push) Successful in 6m49s
Deploy / deploy (push) Successful in 6m49s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -12,7 +12,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git config --global --add safe.directory /home/proyecto/taller_automotriz
|
git config --global --add safe.directory /home/proyecto/taller_automotriz
|
||||||
cd /home/proyecto/taller_automotriz
|
cd /home/proyecto/taller_automotriz
|
||||||
git pull
|
git fetch origin
|
||||||
git reset --hard HEAD
|
git reset --hard origin/main
|
||||||
docker compose down
|
docker compose down
|
||||||
docker compose up -d --build
|
docker compose up -d --build
|
||||||
|
|||||||
Reference in New Issue
Block a user