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

This commit is contained in:
2025-12-23 23:49:01 -07:00
parent 999d97d79a
commit 7d97d270d5
+3 -5
View File
@@ -3,12 +3,7 @@ set -xeuo pipefail
main() { main() {
GO_VERSION=$(curl -s 'https://go.dev/VERSION?m=text' | head -n1) GO_VERSION=$(curl -s 'https://go.dev/VERSION?m=text' | head -n1)
# 1.
ACTION_REPO_DIR="${PWD}" ACTION_REPO_DIR="${PWD}"
go mod edit -go=$(echo GO_VERSION | sed 's/^go//')
#mkdir "${ACTION_REPO_DIR}"
#cp -a . "${ACTION_REPO_DIR}/"
# 2. Create temp directory # 2. Create temp directory
TMPDIR="$(mktemp -d)" TMPDIR="$(mktemp -d)"
@@ -22,6 +17,9 @@ main() {
tar xzf "${GO_VERSION}.linux-amd64.tar.gz" tar xzf "${GO_VERSION}.linux-amd64.tar.gz"
PATH="${PATH}:$PWD/go/bin" PATH="${PATH}:$PWD/go/bin"
cd "${ACTION_REPO_DIR}"
go mod edit -go=$(echo GO_VERSION | sed 's/^go//')
# 3. Clone latest CoreDNS release # 3. Clone latest CoreDNS release
cd "${TMPDIR}" cd "${TMPDIR}"
COREDNS_REPO_URL="https://github.com/coredns/coredns.git" COREDNS_REPO_URL="https://github.com/coredns/coredns.git"