add libmozhi to GOPRIVATE
This commit is contained in:
parent
583288bf01
commit
4b3cabcd5b
3 changed files with 3 additions and 0 deletions
|
@ -39,6 +39,7 @@ jobs:
|
||||||
|
|
||||||
- name: Build mozhi
|
- name: Build mozhi
|
||||||
run: |
|
run: |
|
||||||
|
export GOPRIVATE=codeberg.org/aryak/libmozhi
|
||||||
go mod download
|
go mod download
|
||||||
go run github.com/swaggo/swag/cmd/swag@latest init --parseDependency
|
go run github.com/swaggo/swag/cmd/swag@latest init --parseDependency
|
||||||
GOOS=linux GOARCH=amd64 go build -o mozhi-linux-amd64
|
GOOS=linux GOARCH=amd64 go build -o mozhi-linux-amd64
|
||||||
|
|
|
@ -6,6 +6,7 @@ WORKDIR /src
|
||||||
RUN apk --no-cache add git
|
RUN apk --no-cache add git
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
ENV GOPRIVATE=codeberg.org/aryak/libmozhi
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
RUN go run github.com/swaggo/swag/cmd/swag@latest init --parseDependency
|
RUN go run github.com/swaggo/swag/cmd/swag@latest init --parseDependency
|
||||||
RUN GOOS=linux GOARCH=$TARGETARCH go build -o /src/mozhi
|
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
|
## Building
|
||||||
```
|
```
|
||||||
|
GOPRIVATE=codeberg.org/aryak/libmozhi # Get latest commit since proxy server is a bit slow
|
||||||
go mod download
|
go mod download
|
||||||
go run github.com/swaggo/swag/cmd/swag@latest init --parseDependency
|
go run github.com/swaggo/swag/cmd/swag@latest init --parseDependency
|
||||||
go build -o mozhi
|
go build -o mozhi
|
||||||
|
|
Loading…
Reference in a new issue