Fix: copy entire project with rsync
Some checks failed
Build and Deploy / deploy (push) Failing after 7s

This commit is contained in:
Gunnar Magholder 2026-03-05 16:16:08 +01:00
parent d41fa9d5f5
commit d1488b6006

View file

@ -31,11 +31,10 @@ jobs:
# Verzeichnis erstellen
ssh $SERVER "mkdir -p ${DEPLOY_PATH}"
# Dateien kopieren
scp docker-compose.yml $SERVER:${DEPLOY_PATH}/
scp Dockerfile $SERVER:${DEPLOY_PATH}/ 2>/dev/null || true
# Gesamtes Projekt kopieren (außer .git)
rsync -avz --exclude '.git' --exclude '.forgejo' ./ $SERVER:${DEPLOY_PATH}/
# Anwendung deployen
ssh $SERVER "cd ${DEPLOY_PATH} && docker compose pull && docker compose up -d --build"
ssh $SERVER "cd ${DEPLOY_PATH} && docker compose up -d --build --force-recreate"
echo "Deployed to https://${DOMAIN}"