Add routed build and deploy flow for gateway image
Some checks failed
Build and Deploy Gateway / build-and-deploy (push) Failing after 13s

This commit is contained in:
2026-05-09 10:32:18 +03:00
parent 62f50d9c28
commit ec8e748a43
3 changed files with 55 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ set -euo pipefail
DEPLOY_PATH="${DEPLOY_PATH:-/opt/vpn-proxy}"
GATEWAY_IMAGE="${GATEWAY_IMAGE:?GATEWAY_IMAGE is required}"
PULL_IMAGE="${PULL_IMAGE:-true}"
echo "Preparing deploy directory: ${DEPLOY_PATH}"
mkdir -p "${DEPLOY_PATH}"
@@ -57,7 +58,11 @@ fi
cd "${DEPLOY_PATH}"
echo "Pulling image: ${GATEWAY_IMAGE}"
docker compose -f docker-compose.server.yml pull
if [ "${PULL_IMAGE}" = "true" ]; then
docker compose -f docker-compose.server.yml pull
else
echo "Skipping image pull; using local image ${GATEWAY_IMAGE}"
fi
echo "Starting gateway..."
docker compose -f docker-compose.server.yml up -d