From 4b3cabcd5b89a1f7f5d736edb43c7cc7d46a666d Mon Sep 17 00:00:00 2001 From: Arya Kiran Date: Mon, 11 Sep 2023 14:15:27 +0530 Subject: [PATCH] add libmozhi to GOPRIVATE --- .gitea/workflows/push.yml | 1 + Dockerfile | 1 + README.md | 1 + 3 files changed, 3 insertions(+) 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