From bc020f137042470aaabc3b1f4bdb77b5e35d85ae Mon Sep 17 00:00:00 2001 From: Jeff Grafton Date: Wed, 1 Feb 2017 19:04:23 -0800 Subject: [PATCH] Always docker --pull when building to fetch latest base images --- controllers/gce/Makefile | 2 +- controllers/nginx/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/gce/Makefile b/controllers/gce/Makefile index 5300ca93c..649658af5 100644 --- a/controllers/gce/Makefile +++ b/controllers/gce/Makefile @@ -8,7 +8,7 @@ server: CGO_ENABLED=0 GOOS=linux godep go build -a -installsuffix cgo -ldflags '-w' -o glbc *.go container: server - docker build -t $(PREFIX):$(TAG) . + docker build --pull -t $(PREFIX):$(TAG) . push: container gcloud docker push $(PREFIX):$(TAG) diff --git a/controllers/nginx/Makefile b/controllers/nginx/Makefile index 65eb4af98..8878ecb4f 100644 --- a/controllers/nginx/Makefile +++ b/controllers/nginx/Makefile @@ -21,7 +21,7 @@ build: clean -o rootfs/nginx-ingress-controller ${PKG}/pkg/cmd/controller container: build - docker build -t $(PREFIX):$(RELEASE) rootfs + docker build --pull -t $(PREFIX):$(RELEASE) rootfs push: container gcloud docker push $(PREFIX):$(RELEASE)