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
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:
@@ -176,9 +176,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
echo "Streaming dev image to NAS..."
|
echo "Streaming dev image to NAS..."
|
||||||
podman save nas-dashboard-dev:latest | ssh nasts "/volume1/@appstore/ContainerManager/usr/bin/docker load 2>&1"
|
SSH_OPTS="-o ConnectTimeout=15 -o ServerAliveInterval=15 -o ServerAliveCountMax=3"
|
||||||
|
podman save nas-dashboard-dev:latest | gzip | ssh $SSH_OPTS nasts "gunzip | /volume1/@appstore/ContainerManager/usr/bin/docker load 2>&1"
|
||||||
echo "Retagging image..."
|
echo "Retagging image..."
|
||||||
ssh nasts "/volume1/@appstore/ContainerManager/usr/bin/docker tag localhost/nas-dashboard-dev:latest nas-dashboard-dev:latest 2>&1 && /volume1/@appstore/ContainerManager/usr/bin/docker image rm localhost/nas-dashboard-dev:latest 2>&1"
|
ssh $SSH_OPTS nasts "/volume1/@appstore/ContainerManager/usr/bin/docker tag localhost/nas-dashboard-dev:latest nas-dashboard-dev:latest 2>&1 && /volume1/@appstore/ContainerManager/usr/bin/docker image rm localhost/nas-dashboard-dev:latest 2>&1"
|
||||||
echo "Dev image transferred and retagged successfully"
|
echo "Dev image transferred and retagged successfully"
|
||||||
|
|
||||||
deploy-dev:
|
deploy-dev:
|
||||||
|
|||||||
@@ -191,7 +191,7 @@ jobs:
|
|||||||
set -e
|
set -e
|
||||||
echo "Streaming image to NAS..."
|
echo "Streaming image to NAS..."
|
||||||
SSH_OPTS="-o ConnectTimeout=15 -o ServerAliveInterval=15 -o ServerAliveCountMax=3"
|
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..."
|
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"
|
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"
|
echo "Image transferred and retagged successfully"
|
||||||
|
|||||||
Reference in New Issue
Block a user