From 2d42f0e8f55f4bf36b5bb29577506d1be7e462bf Mon Sep 17 00:00:00 2001 From: Yong Tang Date: Fri, 10 Jul 2026 00:24:39 -0700 Subject: [PATCH] Enforce doker build test (#8271) This PR enforce docker-build test so that every PR will check to make sure the docker build (which reliesd on if base image, binary, etc are still correct), is actually available and working. Note previously, we only check a dry run of docker push, but not actually build the docker image (as binary was fetched from release version on github). This PR fetch local binary build instead as there maynot be the same in different release versions of binary. This is related 8228 Signed-off-by: Yong Tang --- .github/workflows/go.test.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/go.test.yml b/.github/workflows/go.test.yml index 09d171e80..c19876b9a 100644 --- a/.github/workflows/go.test.yml +++ b/.github/workflows/go.test.yml @@ -121,3 +121,13 @@ jobs: - name: Test Makefile.docker release/github-push (dry-run) run: make VERSION=x DOCKER=x -n release docker-push -f Makefile.docker + + - name: Prepare Docker build + run: | + for arch in amd64 arm arm64 mips64le ppc64le s390x riscv64 loong64; do + mkdir -p build/docker/$arch + cp build/linux/$arch/coredns build/docker/$arch/ + done + + - name: Test Makefile.docker build + run: make VERSION=x DOCKER=x -f Makefile.docker docker-build