From 8d30d6493805855c93300f53278816a58cc3ea0f Mon Sep 17 00:00:00 2001 From: Ruy Adorno Date: Mon, 19 Dec 2022 15:42:41 -0500 Subject: [PATCH] tools: add release host var to promotion script Adds a `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 --- doc/contributing/releases.md | 8 ++++++++ tools/release.sh | 6 +++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/doc/contributing/releases.md b/doc/contributing/releases.md index 3d3b7b99be4dd72..ad1426f9142f829 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 `RELEASE_HOST` environment variable: + +```console +# Substitute proxy.xyz with whatever address you intend to use +$ 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 bf70eadfbcada06..3881acf92d71540 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -8,7 +8,11 @@ set -e -webhost=direct.nodejs.org +if [ "$RELEASE_HOST" == "" ]; then + RELEASE_HOST=direct.nodejs.org +fi + +webhost=$RELEASE_HOST webuser=dist promotablecmd=dist-promotable promotecmd=dist-promote