Skip to content
This repository was archived by the owner on Aug 4, 2020. It is now read-only.

Commit faf2eb2

Browse files
committed
feat(Makefile): set docker build flags via environment variable
1 parent 3727113 commit faf2eb2

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ cache:
99
- vendor
1010
env:
1111
DEV_REGISTRY=quay.io
12+
DOCKER_BUILD_FLAGS="--pull --no-cache"
1213
services:
1314
- docker
1415
sudo: required

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ update-changelog:
4545
| cat - CHANGELOG.md > tmp && mv tmp CHANGELOG.md
4646

4747
docker-build: build-binary
48-
docker build --rm -t ${IMAGE} rootfs
48+
docker build ${DOCKER_BUILD_FLAGS} -t ${IMAGE} rootfs
4949
docker tag ${IMAGE} ${MUTABLE_IMAGE}
5050

5151
.PHONY: all docker-build test

0 commit comments

Comments
 (0)