fix: just restart container instead of recreating
Docker restart will use the new image that was just built. Avoids all the network reconnection issues from recreating the container. Simple and proven to work.
This commit is contained in:
@@ -64,6 +64,5 @@ jobs:
|
|||||||
- name: Deploy dev
|
- name: Deploy dev
|
||||||
run: |
|
run: |
|
||||||
export DOCKER_API_VERSION=1.43
|
export DOCKER_API_VERSION=1.43
|
||||||
# Execute deploy script on NAS host directly (not from workflow container)
|
# Just restart the container - it will use the new image
|
||||||
# This avoids Docker-in-Docker network connection issues
|
docker restart nas-dashboard-dev
|
||||||
ssh -o StrictHostKeyChecking=no zjgump@host.docker.internal "cd /volume1/docker/nas-dashboard && /volume1/@appstore/ContainerManager/usr/bin/docker rm -f nas-dashboard-dev || true && /volume1/@appstore/ContainerManager/usr/bin/docker compose -f docker-compose.dev.yml up -d --pull never"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user