Skip to content

Commit 3ef0a86

Browse files
committed
feat(Makefile): set docker build flags via environment variable
1 parent 7c4f7fe commit 3ef0a86

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ cache:
66
- $HOME/.cache/pip
77
services:
88
- docker
9+
env:
10+
- DOCKER_BUILD_FLAGS="--pull --no-cache"
911
install:
1012
- make deps
1113
script:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ docker-test: docker-build-docs
4747
${DEV_ENV_CMD} ${IMAGE} $(TEST_CMD)
4848

4949
docker-build:
50-
docker build --rm -t ${IMAGE} .
50+
docker build ${DOCKER_BUILD_FLAGS} -t ${IMAGE} .
5151

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

0 commit comments

Comments
 (0)