Switch to cross-build from M1 via Gitea container registry
Deploy Dashboard / deploy (push) Failing after 1m31s

This commit is contained in:
Gan, Jimmy
2026-02-21 00:40:46 +08:00
parent fa63214e0c
commit 1e3bd71bfb
3 changed files with 25 additions and 8 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/bin/bash
set -e
REGISTRY="100.78.131.124:3300"
IMAGE="$REGISTRY/jimmy/nas-dashboard"
TAG="${1:-latest}"
DIR="$(cd "$(dirname "$0")" && pwd)"
echo "Building linux/amd64 image..."
docker buildx build --platform linux/amd64 -t "$IMAGE:$TAG" -t "$IMAGE:latest" "$DIR"
echo "Pushing to registry..."
docker push "$IMAGE:$TAG"
[ "$TAG" != "latest" ] && docker push "$IMAGE:latest"
echo "Deploying on NAS..."
ssh zjgump@100.78.131.124 "cd /volume1/docker/nas-dashboard && docker compose pull && docker compose up -d"
echo "Done."