Update readme to exlpain installing the package with Go.
This commit is contained in:
16
README.md
16
README.md
@@ -20,7 +20,21 @@ Since the package is hosted in the Gitea Package Registry, you must configure yo
|
||||
|
||||
**Setup:**
|
||||
```bash
|
||||
export GOPROXY=[https://git.fjla.uk/api/packages/owlboard/go,https://proxy.golang.org,direct](https://git.fjla.uk/api/packages/owlboard/go,https://proxy.golang.org,direct)
|
||||
# Set the proxy to check our Gitea instance first
|
||||
go env -w GOPROXY="https://git.fjla.uk/api/packages/OwlBoard/go,https://proxy.golang.org,direct"
|
||||
|
||||
# Trust our internal domain and skip the public Google checksum database
|
||||
go env -w GONOSUMDB="git.fjla.uk"
|
||||
```
|
||||
|
||||
The, you can simply run go get, as usual.
|
||||
|
||||
#### Container Usage
|
||||
```bash
|
||||
ARG GOPROXY=https://git.fjla.uk/api/packages/OwlBoard/go,https://proxy.golang.org,direct
|
||||
ARG GONOSUMDB=git.fjla.uk
|
||||
ENV GOPROXY=$GOPROXY
|
||||
ENV GONOSUMDB=$GONOSUMDB
|
||||
```
|
||||
|
||||
### 2. Typescript Services
|
||||
|
||||
Reference in New Issue
Block a user