Skip to content

Commit 4e9a0e0

Browse files
authored
Merge pull request #13 from mboersma/build-no-cache
feat(Makefile): set docker build flags via environment variable
2 parents 7560196 + 0cf0deb commit 4e9a0e0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ branches:
55
sudo: required
66
services:
77
- docker
8+
env:
9+
- DOCKER_BUILD_FLAGS="--pull --no-cache"
810
install:
911
- make docker-build
1012
script:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dev:
2525
# For cases where we're building from local
2626
# We also alter the RC file to set the image name.
2727
docker-build:
28-
docker build --no-cache --rm -t ${IMAGE} rootfs
28+
docker build ${DOCKER_BUILD_FLAGS} -t ${IMAGE} rootfs
2929
docker tag ${IMAGE} ${MUTABLE_IMAGE}
3030

3131
test: test-style test-unit test-functional

0 commit comments

Comments
 (0)