From 53d4499215fd7c5de821b0a51154a628d7342f26 Mon Sep 17 00:00:00 2001 From: Vince Prignano Date: Mon, 10 Jun 2019 13:01:10 -0700 Subject: [PATCH] Always pull distroless/static:latest before building (#1002) Signed-off-by: Vince Prignano --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 88b1b407c8fd..1ef2847c9c0b 100644 --- a/Makefile +++ b/Makefile @@ -109,7 +109,7 @@ clean: ## Remove all generated files .PHONY: docker-build docker-build: generate fmt vet manifests ## Build the docker image for controller-manager - docker build . -t ${CONTROLLER_IMG} + docker build --pull . -t ${CONTROLLER_IMG} @echo "updating kustomize image patch file for manager resource" hack/sed.sh -i.tmp -e 's@image: .*@image: '"${CONTROLLER_IMG}"'@' ./config/default/manager_image_patch.yaml @@ -119,7 +119,7 @@ docker-push: docker-build ## Push the docker image .PHONY: docker-build-ci docker-build-ci: generate fmt vet manifests ## Build the docker image for example provider - docker build . -f ./pkg/provider/example/container/Dockerfile -t ${EXAMPLE_PROVIDER_IMG} + docker build --pull . -f ./pkg/provider/example/container/Dockerfile -t ${EXAMPLE_PROVIDER_IMG} @echo "updating kustomize image patch file for ci" hack/sed.sh -i.tmp -e 's@image: .*@image: '"${EXAMPLE_PROVIDER_IMG}"'@' ./config/ci/manager_image_patch.yaml