Skip to content

Commit 40c77c3

Browse files
authored
Merge pull request #1205 from mboersma/build-no-cache
fix(Makefile): build docker image with --no-cache by default
2 parents 145ee50 + e8f0284 commit 40c77c3

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ check-docker:
2727
build: docker-build
2828

2929
docker-build: check-docker
30-
docker build --rm -t ${IMAGE} rootfs
30+
docker build ${DOCKER_BUILD_FLAGS} -t ${IMAGE} rootfs
3131
docker tag ${IMAGE} ${MUTABLE_IMAGE}
3232

3333
deploy: check-kubectl docker-build docker-push

versioning.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
MUTABLE_VERSION ?= canary
22
VERSION ?= git-$(shell git rev-parse --short HEAD)
3+
DOCKER_BUILD_FLAGS ?= --no-cache
34

45
IMAGE := ${DEIS_REGISTRY}${IMAGE_PREFIX}/${SHORT_NAME}:${VERSION}
56
MUTABLE_IMAGE := ${DEIS_REGISTRY}${IMAGE_PREFIX}/${SHORT_NAME}:${MUTABLE_VERSION}

0 commit comments

Comments
 (0)