diff --git a/.gitea/workflows/build-push.yaml b/.gitea/workflows/build-push.yaml index a0269d9..d566bf0 100644 --- a/.gitea/workflows/build-push.yaml +++ b/.gitea/workflows/build-push.yaml @@ -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: tts-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 diff --git a/.gitea/workflows/update-dependency.yml b/.gitea/workflows/update-dependency.yml index 78ecdbc..7f132d4 100644 --- a/.gitea/workflows/update-dependency.yml +++ b/.gitea/workflows/update-dependency.yml @@ -6,6 +6,7 @@ on: env: NTFY_URL: http://ntfy.observability.svc.cluster.local:80 + GOPRIVATE: git.daviestechlabs.io jobs: update: @@ -27,13 +28,13 @@ jobs: run: | git config user.name "gitea-actions[bot]" git config user.email "actions@git.daviestechlabs.io" + git config --global url."https://gitea-actions:${{ secrets.DISPATCH_TOKEN }}@git.daviestechlabs.io/".insteadOf "https://git.daviestechlabs.io/" - name: Update handler-base run: | VERSION="${{ gitea.event.client_payload.version }}" echo "Updating handler-base to ${VERSION}" - GONOSUMCHECK=git.daviestechlabs.io GONOSUMDB=git.daviestechlabs.io \ - go get git.daviestechlabs.io/daviestechlabs/handler-base@${VERSION} + go get git.daviestechlabs.io/daviestechlabs/handler-base@${VERSION} go mod tidy - name: Commit and push