fix(ci): add gzip compression to image transfer (slow VPS->NAS pipe)
Deploy Dashboard (Main) / Backend Tests (push) Successful in 2m38s
Deploy Dashboard (Main) / Build Main Image (push) Has been cancelled
Deploy Dashboard (Main) / Deploy to Production (push) Has been cancelled
Deploy Dashboard (Main) / Frontend Tests (push) Has been cancelled
Deploy Dashboard (Dev) / Backend Tests (push) Successful in 1m2s
Deploy Dashboard (Dev) / Frontend Tests (push) Successful in 52s
Deploy Dashboard (Dev) / Build Dev Image (push) Successful in 12m46s
Deploy Dashboard (Dev) / Deploy to Dev (push) Successful in 59s

This commit is contained in:
Gan, Jimmy
2026-07-08 23:31:24 +08:00
parent 270e90cab5
commit 0f1844b046
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -191,7 +191,7 @@ jobs:
set -e
echo "Streaming image to NAS..."
SSH_OPTS="-o ConnectTimeout=15 -o ServerAliveInterval=15 -o ServerAliveCountMax=3"
podman save nas-dashboard:latest | ssh $SSH_OPTS nasts "/volume1/@appstore/ContainerManager/usr/bin/docker load 2>&1"
podman save nas-dashboard:latest | gzip | ssh $SSH_OPTS nasts "gunzip | /volume1/@appstore/ContainerManager/usr/bin/docker load 2>&1"
echo "Retagging image..."
ssh $SSH_OPTS nasts "/volume1/@appstore/ContainerManager/usr/bin/docker tag localhost/nas-dashboard:latest nas-dashboard:latest 2>&1 && /volume1/@appstore/ContainerManager/usr/bin/docker image rm localhost/nas-dashboard:latest 2>&1"
echo "Image transferred and retagged successfully"