meta: add CI to build debian package #1
+3
-14
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user