From 09bc87d6d3f3fea990984232a9f4cb9187cc40bf Mon Sep 17 00:00:00 2001 From: Alex Mirski-Fitton Date: Fri, 12 Nov 2021 12:59:51 +0000 Subject: [PATCH] Only log in if user defined --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 408dcd8..be431c2 100644 --- a/Makefile +++ b/Makefile @@ -376,7 +376,9 @@ endif .PHONY: docker-login docker-login: +ifneq ($(DOCKER_USER),) docker login -u $(DOCKER_USER) -p $(DOCKER_PASS) +endif .PHONY: log-build-env log-build-vars: