Skip to content

Commit 8d30d64

Browse files
committed
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 <[email protected]>
1 parent f14fa1b commit 8d30d64

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

doc/contributing/releases.md

+8
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,14 @@ or at runtime with:
827827
$ ./tools/release.sh -i ~/.ssh/node_id_rsa
828828
```
829829

830+
You can also specify a different ssh server address to connect to by defining
831+
a `RELEASE_HOST` environment variable:
832+
833+
```console
834+
# Substitute proxy.xyz with whatever address you intend to use
835+
$ RELEASE_HOST=proxy.xyz ./tools/release.sh
836+
```
837+
830838
`tools/release.sh` will perform the following actions when run:
831839

832840
<details>

tools/release.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88

99
set -e
1010

11-
webhost=direct.nodejs.org
11+
if [ "$RELEASE_HOST" == "" ]; then
12+
RELEASE_HOST=direct.nodejs.org
13+
fi
14+
15+
webhost=$RELEASE_HOST
1216
webuser=dist
1317
promotablecmd=dist-promotable
1418
promotecmd=dist-promote

0 commit comments

Comments
 (0)