fix: add GOPRIVATE and git auth for private handler-base module
Some checks failed
CI / Lint (push) Successful in 2m38s
CI / Test (push) Successful in 2m33s
CI / Release (push) Successful in 1m15s
CI / Docker Build & Push (push) Failing after 6m45s
CI / Notify (push) Successful in 1s

- Set GOPRIVATE=git.daviestechlabs.io to bypass public Go module proxy
- Configure git URL insteadOf with DISPATCH_TOKEN for private repo access
This commit is contained in:
2026-02-20 09:22:39 -05:00
parent b34b8c1f1a
commit c5c040d68d
2 changed files with 10 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ on:
env:
NTFY_URL: http://ntfy.observability.svc.cluster.local:80
GOPRIVATE: git.daviestechlabs.io
REGISTRY: gitea-http.gitea.svc.cluster.local:3000/daviestechlabs
REGISTRY_HOST: gitea-http.gitea.svc.cluster.local:3000
IMAGE_NAME: stt-module
@@ -26,6 +27,9 @@ jobs:
go-version-file: go.mod
cache: true
- name: Configure private modules
run: git config --global url."https://gitea-actions:${{ secrets.DISPATCH_TOKEN }}@git.daviestechlabs.io/".insteadOf "https://git.daviestechlabs.io/"
- name: Run go vet
run: go vet ./...
@@ -50,6 +54,9 @@ jobs:
go-version-file: go.mod
cache: true
- name: Configure private modules
run: git config --global url."https://gitea-actions:${{ secrets.DISPATCH_TOKEN }}@git.daviestechlabs.io/".insteadOf "https://git.daviestechlabs.io/"
- name: Verify dependencies
run: go mod verify