Author SHA1 Message Date
dokril f04b1752f4 Use mirrored Node image for gateway builds
Build and Deploy Gateway / deploy (push) Has been skipped
Build and Deploy Gateway / build-and-push (push) Failing after 21s
2026-08-09 00:46:07 +03:00
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 }}"
+1 -1
View File
@@ -1,7 +1,7 @@
export const HARBOR_VERSIONS = Object.freeze({
macClient: '0.20.36',
gatewayClient: '0.21.21',
gatewayBackend: '0.21.20',
gatewayBackend: '0.21.21',
});
export interface ParsedVersion {
+3 -2
View File
@@ -148,8 +148,9 @@ test('production paths use only the compiled dispatcher', () => {
assert.doesNotMatch(entrypoint, /\/app\/src/);
}
assert.match(workflow, /npm run build:production/);
assert.match(workflow, /NODE_BUILD_IMAGE: node:20\.19-alpine/);
assert.match(workflow, /docker image inspect "\$\{\{ env\.NODE_BUILD_IMAGE \}\}"[\s\S]*validating inside \$\{\{ env\.NODE_BUILD_IMAGE \}\}/);
assert.match(workflow, /NODE_BUILD_IMAGE: mirror\.gcr\.io\/library\/node:20\.19-alpine/);
assert.match(workflow, /docker run --rm "\$\{\{ env\.NODE_BUILD_IMAGE \}\}" sh -lc 'command -v npm/);
assert.doesNotMatch(workflow, /docker image inspect "\$\{\{ env\.NODE_BUILD_IMAGE \}\}"/);
assert.match(legacyBuild, /npm run build:production && docker build/);
assert.match(dockerignore, /^dist$/m);
});