Skip to content

Commit

Permalink
feat(Makefile): set docker build flags via environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mboersma committed Jan 20, 2017
1 parent 4722ba0 commit cf87e27
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ cache:
sudo: required
services:
- docker
env:
- DOCKER_BUILD_FLAGS="--pull --no-cache"
install:
- make bootstrap
script:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ build: check-docker
${DEV_ENV_CMD} make binary-build

docker-build: build check-docker
docker build --rm -t ${IMAGE} rootfs
docker build ${DOCKER_BUILD_FLAGS} -t ${IMAGE} rootfs
docker tag ${IMAGE} ${MUTABLE_IMAGE}

# Builds the binary-- this should only be executed within the
Expand Down

0 comments on commit cf87e27

Please sign in to comment.