Skip to content

Commit 4f46069

Browse files
committed
feat(Makefile): set docker build flags via environment variable
1 parent f0e1ef9 commit 4f46069

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
@@ -10,6 +10,7 @@ services:
1010
env:
1111
# HACK(bacongobbler): make travis tests work
1212
- DEIS_REGISTRY=travis-ci
13+
- DOCKER_BUILD_FLAGS="--pull --no-cache"
1314
install:
1415
- make docker-build
1516
script:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ build: check-docker
3535
# For cases where we're building from local
3636
# We also alter the RC file to set the image name.
3737
docker-build: check-docker build
38-
docker build --rm -t ${IMAGE} rootfs
38+
docker build ${DOCKER_BUILD_FLAGS} -t ${IMAGE} rootfs
3939
docker tag ${IMAGE} ${MUTABLE_IMAGE}
4040

4141
build-binary:

0 commit comments

Comments
 (0)