Adds missing fetch to git command
Some checks failed
/ build (push) Failing after 4s

This commit is contained in:
Michel 2024-11-07 18:36:28 +01:00
parent 3d1583a3b7
commit 17267759df

View file

@ -25,6 +25,6 @@ jobs:
# Stop service # Stop service
ssh ${USERNAME}@${HOST} "cd ${TARGETDIR}/deploy && sudo docker compose down -v" ssh ${USERNAME}@${HOST} "cd ${TARGETDIR}/deploy && sudo docker compose down -v"
# Update Service # Update Service
ssh ${USERNAME}@${HOST} "cd ${TARGETDIR} && git reset --hard origin/master && sudo ${TARGETDIR}/deploy/deploy.sh" ssh ${USERNAME}@${HOST} "cd ${TARGETDIR} && git fetch && git reset --hard origin/master && sudo ${TARGETDIR}/deploy/deploy.sh"
# Start service # Start service
ssh ${USERNAME}@${HOST} "cd ${TARGETDIR}/deploy && sudo docker compose up -d" ssh ${USERNAME}@${HOST} "cd ${TARGETDIR}/deploy && sudo docker compose up -d"