add libmozhi to GOPRIVATE

This commit is contained in:
Arya 2023-09-11 14:15:27 +05:30
parent 583288bf01
commit 4b3cabcd5b
Signed by: arya
GPG Key ID: 842D12BDA50DF120
3 changed files with 3 additions and 0 deletions

View File

@ -39,6 +39,7 @@ jobs:
- name: Build mozhi
run: |
export GOPRIVATE=codeberg.org/aryak/libmozhi
go mod download
go run github.com/swaggo/swag/cmd/swag@latest init --parseDependency
GOOS=linux GOARCH=amd64 go build -o mozhi-linux-amd64

View File

@ -6,6 +6,7 @@ WORKDIR /src
RUN apk --no-cache add git
COPY . .
ENV GOPRIVATE=codeberg.org/aryak/libmozhi
RUN go mod download
RUN go run github.com/swaggo/swag/cmd/swag@latest init --parseDependency
RUN GOOS=linux GOARCH=$TARGETARCH go build -o /src/mozhi

View File

@ -34,6 +34,7 @@ You can either use [docker](https://codeberg.org/aryak/mozhi/src/branch/master/c
## Building
```
GOPRIVATE=codeberg.org/aryak/libmozhi # Get latest commit since proxy server is a bit slow
go mod download
go run github.com/swaggo/swag/cmd/swag@latest init --parseDependency
go build -o mozhi