fix: add GOPRIVATE and git auth for private handler-base module
- 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:
@@ -6,6 +6,7 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
NTFY_URL: http://ntfy.observability.svc.cluster.local:80
|
NTFY_URL: http://ntfy.observability.svc.cluster.local:80
|
||||||
|
GOPRIVATE: git.daviestechlabs.io
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update:
|
update:
|
||||||
@@ -27,12 +28,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
git config user.name "gitea-actions[bot]"
|
git config user.name "gitea-actions[bot]"
|
||||||
git config user.email "actions@git.daviestechlabs.io"
|
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
|
- name: Update handler-base
|
||||||
run: |
|
run: |
|
||||||
VERSION="${{ gitea.event.client_payload.version }}"
|
VERSION="${{ gitea.event.client_payload.version }}"
|
||||||
echo "Updating handler-base to ${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
|
go mod tidy
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user