From b48e82ec1d93463cc14af0005e4d4849cc8ecc88 Mon Sep 17 00:00:00 2001 From: Ruy Adorno Date: Sun, 1 Jan 2023 11:29:42 -0500 Subject: [PATCH] tools: add release host var to promotion script Adds a `NODEJS_RELEASE_HOST` environment variable that enable releasers to provide a custom proxy host to connect to when performing the promotion steps of a given release. Signed-off-by: Ruy Adorno PR-URL: https://github.com/nodejs/node/pull/45913 Reviewed-By: Rafael Gonzaga Reviewed-By: James M Snell Reviewed-By: Antoine du Hamel --- doc/contributing/releases.md | 8 ++++++++ tools/release.sh | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/doc/contributing/releases.md b/doc/contributing/releases.md index 3d3b7b99be4dd7..e4b044bd1f4d7c 100644 --- a/doc/contributing/releases.md +++ b/doc/contributing/releases.md @@ -827,6 +827,14 @@ or at runtime with: $ ./tools/release.sh -i ~/.ssh/node_id_rsa ``` +You can also specify a different ssh server address to connect to by defining +a `NODEJS_RELEASE_HOST` environment variable: + +```console +# Substitute proxy.xyz with whatever address you intend to use +$ NODEJS_RELEASE_HOST=proxy.xyz ./tools/release.sh +``` + `tools/release.sh` will perform the following actions when run:
diff --git a/tools/release.sh b/tools/release.sh index bf70eadfbcada0..17243b1f4cd98c 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -8,7 +8,9 @@ set -e -webhost=direct.nodejs.org +[ -z "$NODEJS_RELEASE_HOST" ] && NODEJS_RELEASE_HOST=direct.nodejs.org + +webhost=$NODEJS_RELEASE_HOST webuser=dist promotablecmd=dist-promotable promotecmd=dist-promote