Fix gateway CI to build and deploy via registry
All checks were successful
Build and Deploy Gateway / build-and-push (push) Successful in 2m51s
Build and Deploy Gateway / deploy (push) Successful in 5s

This commit is contained in:
2026-05-09 11:11:39 +03:00
parent 6df8c525ef
commit 2ef1e09986

View File

@@ -39,8 +39,9 @@ jobs:
echo "Docker context: $(docker context show 2>/dev/null || true)"
docker info 2>/dev/null | sed -n '/HTTP Proxy:/p;/HTTPS Proxy:/p;/Name:/p'
if ! docker image inspect "${{ env.BASE_IMAGE }}" >/dev/null 2>&1; then
echo "Runtime base image ${{ env.BASE_IMAGE }} is missing; building it now."
if ! docker image inspect "${{ env.BASE_IMAGE }}" >/dev/null 2>&1 \
|| ! docker run --rm "${{ env.BASE_IMAGE }}" sh -lc 'command -v npm >/dev/null'; then
echo "Runtime base image ${{ env.BASE_IMAGE }} is missing npm; building it now."
BASE_IMAGE="${{ env.RUNTIME_BASE_SOURCE_IMAGE }}" \
RUNTIME_BASE_IMAGE="${{ env.BASE_IMAGE }}" \
SINGBOX_VERSION="${{ env.SINGBOX_VERSION }}" \