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

This commit is contained in:
2025-12-23 23:34:00 -07:00
parent 76cd206046
commit 299eea0808
+3 -14
View File
@@ -18,7 +18,7 @@ main() {
GOLANG_URL="https://go.dev/dl/${GO_VERSION}.linux-amd64.tar.gz"
wget "${GOLANG_URL}"
tar xzf "${GO_VERSION}.linux-amd64.tar.gz"
ls -lah
ls -lah go
# 2. Clone latest CoreDNS release
cd "${TMPDIR}"
@@ -55,21 +55,10 @@ main() {
mv plugin.cfg.new plugin.cfg
fi
ls -lah
docker run --rm \
--user "$(id -u):$(id -g)" \
-v "$PWD":"/work" \
-w "/work" \
golang:latest ls -lah
# 6. Regenerate plugin source files
# CoreDNS uses go generate (via Makefile) to rebuild plugin glue code. [web:20][web:26]
docker run --rm \
--user "$(id -u):$(id -g)" \
-v "$PWD":"/work" \
-w "/work" \
golang:latest bash -c make core/plugin/zplugin.go core/dnsserver/zdirectives.go
make core/plugin/zplugin.go core/dnsserver/zdirectives.go
# 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]