mirror of
https://codeberg.org/aryak/mozhi
synced 2024-11-16 15:52:58 +05:30
add libmozhi to GOPRIVATE
This commit is contained in:
parent
583288bf01
commit
4b3cabcd5b
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user