Skip to content
This repository was archived by the owner on May 27, 2019. It is now read-only.

Commit cf87e27

Browse files
committed
feat(Makefile): set docker build flags via environment variable
1 parent 4722ba0 commit cf87e27

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
@@ -8,6 +8,8 @@ cache:
88
sudo: required
99
services:
1010
- docker
11+
env:
12+
- DOCKER_BUILD_FLAGS="--pull --no-cache"
1113
install:
1214
- make bootstrap
1315
script:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ build: check-docker
4646
${DEV_ENV_CMD} make binary-build
4747

4848
docker-build: build check-docker
49-
docker build --rm -t ${IMAGE} rootfs
49+
docker build ${DOCKER_BUILD_FLAGS} -t ${IMAGE} rootfs
5050
docker tag ${IMAGE} ${MUTABLE_IMAGE}
5151

5252
# Builds the binary-- this should only be executed within the

0 commit comments

Comments
 (0)