Use mirrored Node image for gateway builds
Build and Deploy Gateway / build-and-push (push) Failing after 21s
Build and Deploy Gateway / deploy (push) Has been skipped

This commit is contained in:
2026-08-09 00:46:07 +03:00
parent 34d8b681ad
commit f04b1752f4
3 changed files with 7 additions and 7 deletions
+3 -4
View File
@@ -8,7 +8,7 @@ on:
env:
DEPLOY_PATH: /opt/vpn-proxy
BASE_IMAGE: vpn-proxy-runtime-base:bookworm-slim
NODE_BUILD_IMAGE: node:20.19-alpine
NODE_BUILD_IMAGE: mirror.gcr.io/library/node:20.19-alpine
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,9 +87,8 @@ jobs:
npm test
npm run build:production
else
if ! docker image inspect "${{ env.NODE_BUILD_IMAGE }}" >/dev/null 2>&1 \
|| ! docker run --rm "${{ env.NODE_BUILD_IMAGE }}" sh -lc 'command -v npm >/dev/null'; then
echo "Cannot validate change: host npm and the existing Node 20.19 build image are unavailable." >&2
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
exit 1
fi
echo "Host npm not found; validating inside ${{ env.NODE_BUILD_IMAGE }}"