From 1293adbef2cb3c3f8ad9853e868cb04ffdc57792 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Mon, 19 Jan 2026 22:54:36 +0100 Subject: [PATCH] deploy --- .gitea/workflows/deploy.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index a2d57f5f..a052f2b7 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -59,12 +59,11 @@ jobs: # --- Sync files --- - name: Sync files to server run: | - # Use IPQoS=0x00 to prevent connection drops and -O for legacy SCP protocol - ssh -i ~/.ssh/id_ed25519 -o StrictHostKeyChecking=no -o IPQoS=0x00 deploy@alpha.mintel.me "mkdir -p /home/deploy/sites/klz-cables.com/" - scp -i ~/.ssh/id_ed25519 -o StrictHostKeyChecking=no -o IPQoS=0x00 -O ./docker-compose.y*ml deploy@alpha.mintel.me:/home/deploy/sites/klz-cables.com/ - if [ -d ./varnish ]; then - scp -i ~/.ssh/id_ed25519 -o StrictHostKeyChecking=no -o IPQoS=0x00 -O -r ./varnish deploy@alpha.mintel.me:/home/deploy/sites/klz-cables.com/ - fi + # Use IPQoS=0x00 to prevent connection drops in some network environments + # Use tar to bundle files and send them via SSH in a single connection + tar czf - docker-compose.y*ml $([ -d ./varnish ] && echo varnish) | \ + ssh -i ~/.ssh/id_ed25519 -o StrictHostKeyChecking=no -o IPQoS=0x00 deploy@alpha.mintel.me \ + "mkdir -p /home/deploy/sites/klz-cables.com/ && tar xzf - -C /home/deploy/sites/klz-cables.com/" # --- Deploy --- - name: Deploy on server