Restore videoreg public guide site with static isolated deployment
Production container deploy / production (push) Failing after 2m34s

This commit is contained in:
huncode committed 2026-10-26 14:26:13 +03:00
1 parent 2ce58fcbc0
commit 53e4f06486
35 files changed
+599 -355

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail
: "${IMAGE:?Provide immutable registry image tag or digest}"
DEPLOY_HOST="${DEPLOY_HOST:-zz}"
REMOTE_RELEASE="/tmp/videoreg-static-deploy"
ssh -o BatchMode=yes "$DEPLOY_HOST" "mkdir -p '$REMOTE_RELEASE'"
scp -o BatchMode=yes deploy/stack.yml "$DEPLOY_HOST:$REMOTE_RELEASE/stack.yml"
# IMAGE is validated to avoid injecting shell commands in the remote environment.
[[ "$IMAGE" =~ ^[a-zA-Z0-9._/:@-]+$ ]] || exit 2
ssh -o BatchMode=yes "$DEPLOY_HOST" "cd '$REMOTE_RELEASE' && IMAGE='$IMAGE' DOMAIN=videoreg.ru STACK_NAME=videoreg TRAEFIK_NETWORK=traefik-public docker stack deploy --with-registry-auth -c stack.yml videoreg && docker stack services videoreg"