Skip to content

Commit b2fc347

Browse files
committed
feat(Makefile): set docker build flags via environment variable
1 parent 75a0123 commit b2fc347

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ cache:
77
- vendor
88
services:
99
- docker
10+
env:
11+
- DOCKER_BUILD_FLAGS="--pull --no-cache"
1012
sudo: required
1113
install:
1214
- make bootstrap

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ test-cover:
3838

3939
docker-build: build
4040
# build the main image
41-
docker build --rm -t ${IMAGE} rootfs
41+
docker build ${DOCKER_BUILD_FLAGS} -t ${IMAGE} rootfs
4242
docker tag ${IMAGE} ${MUTABLE_IMAGE}
4343

4444
deploy: build docker-build docker-push

0 commit comments

Comments
 (0)