Skip to content

Commit f760b86

Browse files
authored
Merge pull request #465 from mboersma/build-no-cache
feat(Makefile): set docker build flags via environment variable
2 parents 9b0839d + fcc5bb0 commit f760b86

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ branches:
44
- master
55
env:
66
DEV_REGISTRY=quay.io
7+
DOCKER_BUILD_FLAGS="--pull --no-cache"
78
services:
89
- docker
910
sudo: required

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ test-cover:
4646
${DEV_ENV_CMD} test-cover.sh
4747

4848
docker-build: build
49-
docker build --rm -t ${IMAGE} rootfs
49+
docker build ${DOCKER_BUILD_FLAGS} -t ${IMAGE} rootfs
5050
docker tag ${IMAGE} ${MUTABLE_IMAGE}
5151

5252
check-kubectl:

0 commit comments

Comments
 (0)