This commit is contained in:
+3
-14
@@ -18,7 +18,7 @@ main() {
|
|||||||
GOLANG_URL="https://go.dev/dl/${GO_VERSION}.linux-amd64.tar.gz"
|
GOLANG_URL="https://go.dev/dl/${GO_VERSION}.linux-amd64.tar.gz"
|
||||||
wget "${GOLANG_URL}"
|
wget "${GOLANG_URL}"
|
||||||
tar xzf "${GO_VERSION}.linux-amd64.tar.gz"
|
tar xzf "${GO_VERSION}.linux-amd64.tar.gz"
|
||||||
ls -lah
|
ls -lah go
|
||||||
|
|
||||||
# 2. Clone latest CoreDNS release
|
# 2. Clone latest CoreDNS release
|
||||||
cd "${TMPDIR}"
|
cd "${TMPDIR}"
|
||||||
@@ -55,21 +55,10 @@ main() {
|
|||||||
mv plugin.cfg.new plugin.cfg
|
mv plugin.cfg.new plugin.cfg
|
||||||
fi
|
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
|
# 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]
|
||||||
docker run --rm \
|
|
||||||
--user "$(id -u):$(id -g)" \
|
make core/plugin/zplugin.go core/dnsserver/zdirectives.go
|
||||||
-v "$PWD":"/work" \
|
|
||||||
-w "/work" \
|
|
||||||
golang:latest bash -c make core/plugin/zplugin.go core/dnsserver/zdirectives.go
|
|
||||||
|
|
||||||
# 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]
|
||||||
|
|||||||
Reference in New Issue
Block a user