Use Debian Node image for gateway builds
Build and Deploy Gateway / build-and-push (push) Successful in 48s
Build and Deploy Gateway / deploy (push) Successful in 13s

This commit is contained in:
2026-08-09 00:51:46 +03:00
parent f04b1752f4
commit 71ede44be0
3 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -8,7 +8,7 @@ on:
env:
DEPLOY_PATH: /opt/vpn-proxy
BASE_IMAGE: vpn-proxy-runtime-base:bookworm-slim
NODE_BUILD_IMAGE: mirror.gcr.io/library/node:20.19-alpine
NODE_BUILD_IMAGE: mirror.gcr.io/library/node:20.19-bookworm
RUNTIME_BASE_SOURCE_IMAGE: mirror.gcr.io/library/debian:bookworm-slim
APT_MIRROR: http://mirror.yandex.ru/debian
APT_SECURITY_MIRROR: http://mirror.yandex.ru/debian-security
@@ -87,8 +87,8 @@ jobs:
npm test
npm run build:production
else
if ! docker run --rm "${{ env.NODE_BUILD_IMAGE }}" sh -lc 'command -v npm >/dev/null'; then
echo "Cannot validate change: host npm and the Node 20.19 build image are unavailable." >&2
if ! docker run --rm "${{ env.NODE_BUILD_IMAGE }}" sh -lc 'command -v npm >/dev/null && command -v git >/dev/null && test -x /bin/bash'; then
echo "Cannot validate change: host npm and the Node 20.19 build toolchain are unavailable." >&2
exit 1
fi
echo "Host npm not found; validating inside ${{ env.NODE_BUILD_IMAGE }}"