Compress artifact binaries as tgz

- Old artifact name convention: "norouter-$(uname -s)-$(uname -m)"
- New artifact name convention: "norouter-$(uname -s)-$(uname -m).tgz"

The archive contains "norouter" executable.

On Windows, "norouter-$(uname -s)-$(uname -m).zip" contains "norouter.exe".

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
Akihiro Suda
2020-12-15 18:18:50 +09:00
parent 3cbf277929
commit 656e443867
8 changed files with 85 additions and 60 deletions

View File

@@ -26,20 +26,19 @@ The easiest way is to download the binary on the local host first, and then use
`norouter show-installer | ssh <USER>@<HOST>` to replicate the binary.
```console
$ curl -o norouter --fail -L https://github.com/norouter/norouter/releases/latest/download/norouter-$(uname -s)-$(uname -m)
$ chmod +x norouter
$ curl -fsSL https://github.com/norouter/norouter/releases/latest/download/norouter-$(uname -s)-$(uname -m).tgz | sudo tar xzvC /usr/local/bin
```
```console
$ norouter show-installer | ssh some-user@host1.cloud1.example.com
...
Successfully installed /home/some-user/bin/norouter (version 0.3.0)
Successfully installed /home/some-user/bin/norouter (version 0.6.0)
```
```console
$ norouter show-installer | ssh some-user@host2.cloud2.example.com
...
Successfully installed /home/some-user/bin/norouter (version 0.3.0)
Successfully installed /home/some-user/bin/norouter (version 0.6.0)
```
## Step 1: Create a manifest