Skip to content

Commit

Permalink
Merge pull request #127 from mboersma/build-no-cache
Browse files Browse the repository at this point in the history
feat(Makefile): set docker build flags via environment variable
  • Loading branch information
mboersma authored Jan 25, 2017
2 parents 75a0123 + b2fc347 commit 923e82e
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 @@ -7,6 +7,8 @@ cache:
- vendor
services:
- docker
env:
- DOCKER_BUILD_FLAGS="--pull --no-cache"
sudo: required
install:
- make bootstrap
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ test-cover:

docker-build: build
# build the main image
docker build --rm -t ${IMAGE} rootfs
docker build ${DOCKER_BUILD_FLAGS} -t ${IMAGE} rootfs
docker tag ${IMAGE} ${MUTABLE_IMAGE}

deploy: build docker-build docker-push
Expand Down

0 comments on commit 923e82e

Please sign in to comment.