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 7c4f7fe commit 3ef0a86
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 @@ -6,6 +6,8 @@ cache:
- $HOME/.cache/pip
services:
- docker
env:
- DOCKER_BUILD_FLAGS="--pull --no-cache"
install:
- make deps
script:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ docker-test: docker-build-docs
${DEV_ENV_CMD} ${IMAGE} $(TEST_CMD)

docker-build:
docker build --rm -t ${IMAGE} .
docker build ${DOCKER_BUILD_FLAGS} -t ${IMAGE} .

docker-serve:
${DEV_ENV_CMD} ${IMAGE} $(MKDOCSSERVE)

0 comments on commit 3ef0a86

Please sign in to comment.