diff --git a/.gitea/workflows/push.yml b/.gitea/workflows/push.yml index b8ffbec..97ded78 100644 --- a/.gitea/workflows/push.yml +++ b/.gitea/workflows/push.yml @@ -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 diff --git a/Dockerfile b/Dockerfile index c6f1a65..85f41ed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/README.md b/README.md index 457e2ff..cc574d3 100644 --- a/README.md +++ b/README.md @@ -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