Always --pull in docker build to ensure recent base images

This commit is contained in:
Jeff Grafton
2017-01-10 14:29:47 -08:00
parent add3a08a6d
commit 19aafd291c
52 changed files with 55 additions and 55 deletions

View File

@@ -24,8 +24,8 @@ release: clean build push clean
# builds a docker image that builds the app and packages it into a minimal docker image
build:
@cp ../../bazel-bin/examples/guestbook-go/guestbook-go guestbook_bin
docker build --rm --force-rm -t ${REGISTRY}/guestbook-builder .
docker run --rm ${REGISTRY}/guestbook-builder | docker build -t "${REGISTRY}/guestbook:${VERSION}" -
docker build --pull --rm --force-rm -t ${REGISTRY}/guestbook-builder .
docker run --rm ${REGISTRY}/guestbook-builder | docker build --pull -t "${REGISTRY}/guestbook:${VERSION}" -
# push the image to an registry
push: