Skip to content

Commit cc60fa0

Browse files
committed
feat(Makefile): set docker build flags via environment variable
Allows CI to pass in "--pull --no-cache" to avoid surprises when building Docker images.
1 parent 35fe6ad commit cc60fa0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ node(linux) {
8484

8585
sh """
8686
docker login -e="${quayEmail}" -u="${quayUsername}" -p="\${QUAY_PASSWORD}" quay.io
87-
docker build -t ${test_image} .
87+
docker build \${DOCKER_BUILD_FLAGS} -t ${test_image} .
8888
docker push ${test_image}
8989
"""
9090

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ test: build-test-image
6868
docker run --rm ${IMAGE} test
6969

7070
build-test-image:
71-
docker build -t ${IMAGE} .
71+
docker build ${DOCKER_BUILD_FLAGS} -t ${IMAGE} .
7272

7373
push-test-image: build-test-image
7474
docker push ${IMAGE}

0 commit comments

Comments
 (0)