docs: Add cloudsmith repo to install instructions (#49)

* docs: Add cloudsmith repo to install instructions

* Update README.md

* docs: Remove -a from tee
This commit is contained in:
Francis Lavoie 2021-02-22 15:14:46 -05:00 committed by GitHub
parent c2133748db
commit 891c8f95f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,12 +15,23 @@ Stay updated, be aware of changes, and please submit feedback! Thanks!
## Install
You can [download binaries](https://github.com/caddyserver/xcaddy/releases) that are already compiled for your platform, or build `xcaddy` from source:
You can [download binaries](https://github.com/caddyserver/xcaddy/releases) that are already compiled for your platform from the Release tab.
You may also build `xcaddy` from source:
```bash
$ go get -u github.com/caddyserver/xcaddy/cmd/xcaddy
```
For Debian, Ubuntu and Raspbian, an `xcaddy` package is available from our [Cloudsmith repo](https://cloudsmith.io/~caddy/repos/xcaddy/packages/):
```bash
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/xcaddy/gpg.key' | sudo apt-key add -
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/xcaddy/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-xcaddy.list
sudo apt update
sudo apt install xcaddy
```
## Command usage