TEST
Build Coredns with netboxdns plugin / build (push) Failing after -1s

This commit is contained in:
2025-12-23 23:17:41 -07:00
parent 01476201d7
commit 71c92088ba
+10 -2
View File
@@ -48,12 +48,20 @@ main() {
# 6. Regenerate plugin source files # 6. Regenerate plugin source files
# CoreDNS uses go generate (via Makefile) to rebuild plugin glue code. [web:20][web:26] # CoreDNS uses go generate (via Makefile) to rebuild plugin glue code. [web:20][web:26]
make gen || go generate ./... docker run --rm -it \
--user "$(id -u):$(id -g)" \
-v "$PWD":"$PWD" \
-w "$PWD" \
golang:latest make gen || go generate ./...
# 7. go mod replace plugin path to the cloned action repo # 7. go mod replace plugin path to the cloned action repo
# This assumes the plugin lives at github.com/doubleu-labs/coredns-netbox-plugin-dns in your repo. [web:16][web:23] # This assumes the plugin lives at github.com/doubleu-labs/coredns-netbox-plugin-dns in your repo. [web:16][web:23]
# Adjust relative path if your repo layout differs. # Adjust relative path if your repo layout differs.
go mod edit -replace=github.com/doubleu-labs/coredns-netbox-plugin-dns="${ACTION_REPO_DIR}" docker run --rm -it \
--user "$(id -u):$(id -g)" \
-v "$PWD":"$PWD" \
-w "$PWD" \
golang:latest go mod edit -replace=github.com/doubleu-labs/coredns-netbox-plugin-dns="${ACTION_REPO_DIR}"
# 8. Update Go version to the latest # 8. Update Go version to the latest
# Install or pick latest Go and set GOTOOLCHAIN, or rely on pre-installed toolchain in the runner. [web:17] # Install or pick latest Go and set GOTOOLCHAIN, or rely on pre-installed toolchain in the runner. [web:17]