Fix: copy entire project with rsync
Some checks failed
Build and Deploy / deploy (push) Failing after 7s
Some checks failed
Build and Deploy / deploy (push) Failing after 7s
This commit is contained in:
parent
d41fa9d5f5
commit
d1488b6006
1 changed files with 3 additions and 4 deletions
|
|
@ -31,11 +31,10 @@ jobs:
|
||||||
# Verzeichnis erstellen
|
# Verzeichnis erstellen
|
||||||
ssh $SERVER "mkdir -p ${DEPLOY_PATH}"
|
ssh $SERVER "mkdir -p ${DEPLOY_PATH}"
|
||||||
|
|
||||||
# Dateien kopieren
|
# Gesamtes Projekt kopieren (außer .git)
|
||||||
scp docker-compose.yml $SERVER:${DEPLOY_PATH}/
|
rsync -avz --exclude '.git' --exclude '.forgejo' ./ $SERVER:${DEPLOY_PATH}/
|
||||||
scp Dockerfile $SERVER:${DEPLOY_PATH}/ 2>/dev/null || true
|
|
||||||
|
|
||||||
# Anwendung deployen
|
# 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}"
|
echo "Deployed to https://${DOMAIN}"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue