Skip to content

Commit 034e35c

Browse files
authored
Merge pull request #112 from mboersma/build-no-cache
feat(Makefile): set docker build flags via environment variable
2 parents e472902 + 003e8dd commit 034e35c

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
@@ -6,6 +6,8 @@ branches:
66
- master
77
services:
88
- docker
9+
env:
10+
- DOCKER_BUILD_FLAGS="--pull --no-cache"
911
sudo: required
1012
install:
1113
- pip install -r rootfs/dev_requirements.txt

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ include versioning.mk
66

77
# For cases where we're building from local
88
docker-build:
9-
docker build --rm -t ${IMAGE} rootfs
9+
docker build ${DOCKER_BUILD_FLAGS} -t ${IMAGE} rootfs
1010
docker tag ${IMAGE} ${MUTABLE_IMAGE}
1111

1212
setup-venv:

0 commit comments

Comments
 (0)