Skip to content

Commit

Permalink
Always pull distroless/static:latest before building (#1002)
Browse files Browse the repository at this point in the history
Signed-off-by: Vince Prignano <[email protected]>
  • Loading branch information
vincepri authored and k8s-ci-robot committed Jun 10, 2019
1 parent 95a2a8c commit 53d4499
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 53d4499

Please sign in to comment.