Skip to content

Commit

Permalink
tools: add release host var to promotion script
Browse files Browse the repository at this point in the history
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 <ruyadorno@google.com>
  • Loading branch information
ruyadorno committed Dec 19, 2022
1 parent f14fa1b commit 4fcdf24
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
8 changes: 8 additions & 0 deletions doc/contributing/releases.md
Expand Up @@ -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:

<details>
Expand Down
6 changes: 5 additions & 1 deletion tools/release.sh
Expand Up @@ -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
Expand Down

0 comments on commit 4fcdf24

Please sign in to comment.