diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index baef6ea..c295516 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -12,7 +12,9 @@ on: workflow_dispatch: env: - GOPROXY: https://proxy.golang.org,direct + GOPROXY: direct + GOPRIVATE: git.marketally.com,code.gitcaddy.com + GONOSUMDB: git.marketally.com,code.gitcaddy.com GO_VERSION: "1.25" jobs: @@ -29,6 +31,10 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Configure git for private modules + run: | + git config --global url."https://token:${{ secrets.RELEASE_TOKEN }}@git.marketally.com/".insteadOf "https://git.marketally.com/" + - name: Setup Go uses: actions/setup-go@v5 with: @@ -58,6 +64,10 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + - name: Configure git for private modules + run: | + git config --global url."https://token:${{ secrets.RELEASE_TOKEN }}@git.marketally.com/".insteadOf "https://git.marketally.com/" + - name: Setup Go uses: actions/setup-go@v5 with: