From e525f30856ce3cb266c7dcb0c1bdaf2d93a7d220 Mon Sep 17 00:00:00 2001 From: Bridget McErlean Date: Fri, 16 Jul 2021 18:08:47 -0400 Subject: [PATCH] Fix push-build-image target The `push-build-image` target was broken in #3634. The `ifneq` conditional block had tabs for indentation which results in incorrect behaviour. Instead, remove whitespace before the conditional block like we do for other similar blocks. Signed-off-by: Bridget McErlean --- Makefile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 6708145aa..3884063c9 100644 --- a/Makefile +++ b/Makefile @@ -290,12 +290,12 @@ push-build-image: @# this target will push the build-image it assumes you already have docker @# credentials needed to accomplish this. @# Pushing will be skipped if a custom Dockerfile was used to build the image. - ifneq "$(origin BUILDER_IMAGE_DOCKERFILE)" "file" - @echo "Dockerfile for builder image has been overridden" - @echo "Skipping push of custom image" - else - docker push $(BUILDER_IMAGE) - endif +ifneq "$(origin BUILDER_IMAGE_DOCKERFILE)" "file" + @echo "Dockerfile for builder image has been overridden" + @echo "Skipping push of custom image" +else + docker push $(BUILDER_IMAGE) +endif build-image-hugo: cd site && docker build --pull -t $(HUGO_IMAGE) .