From 96c7f525bb4a732a359ccc1d514015ae1228c780 Mon Sep 17 00:00:00 2001 From: Bridget McErlean Date: Wed, 1 Apr 2020 18:52:52 -0400 Subject: [PATCH] Ensure consistent windows image names We were building windows images with the name `windows` but attempting to push images with only `win` in the name. Also, we can't build windows and linux images in the same docker context so don't attempt to push linux images if pushing windows images. Signed-off-by: Bridget McErlean --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 8e568a53c..ab5168339 100644 --- a/Makefile +++ b/Makefile @@ -146,7 +146,7 @@ windows_containers: build/windows/amd64/sonobuoy.exe sed -e 's|BASEIMAGE|$(WIN_IMAGE)|g' \ -e 's|BINARY|build/windows/amd64/sonobuoy.exe|g' DockerfileWindows > DockerfileWindows-$$arch; \ $(MAKE) build_container DOCKERFILE=DockerfileWindows-$$arch; \ - $(MAKE) build_container DOCKERFILE="DockerfileWindows-$$arch" TARGET="sonobuoy-windows-$$arch"; \ + $(MAKE) build_container DOCKERFILE="DockerfileWindows-$$arch" TARGET="sonobuoy-win-$$arch"; \ else \ echo "Windows ARCH unknown"; \ fi \ @@ -208,15 +208,15 @@ push: pre # Assumes you have the images built or loaded already. Not # added as dependency due to having both Linux/Windows # prereqs which can't be done on the same machine. - for arch in $(LINUX_ARCH); do \ - $(MAKE) push_images TARGET="sonobuoy-$$arch"; \ - done ifeq ($(PUSH_WINDOWS),true) for arch in $(WIN_ARCH); do \ $(MAKE) push_images TARGET="sonobuoy-win-$$arch"; \ done else echo '$$PUSH_WINDOWS not set, not pushing Windows images' + for arch in $(LINUX_ARCH); do \ + $(MAKE) push_images TARGET="sonobuoy-$$arch"; \ + done endif $(MAKE) push_manifest VERSION=$(IMAGE_BRANCH) TARGET="sonobuoy"