Skip to content

Commit ec3c26c

Browse files
authored
Merge pull request #132 from mboersma/build-no-cache
feat(Makefile): set docker build flags via environment variable
2 parents 40e3825 + 8ce9845 commit ec3c26c

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.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
@@ -65,7 +65,7 @@ build-with-container: check-docker
6565
docker-build: build-with-container build-image
6666

6767
build-image:
68-
docker build -t ${IMAGE} rootfs
68+
docker build ${DOCKER_BUILD_FLAGS} -t ${IMAGE} rootfs
6969
docker tag ${IMAGE} ${MUTABLE_IMAGE}
7070

7171
clean: check-docker

versioning.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,3 @@ docker-immutable-push:
2020
.PHONY: docker-mutable-push
2121
docker-mutable-push:
2222
docker push ${MUTABLE_IMAGE}
23-

0 commit comments

Comments
 (0)