From 18921513ef47a6ccc821c3fffbe4937dc1d25fcb Mon Sep 17 00:00:00 2001 From: Darren Oakley Date: Thu, 21 Oct 2021 11:34:17 +0100 Subject: [PATCH] [semver:patch] Allow additional cli args to be passed to docker build (#85) We'd like to pass additional `--build-arg` options to our builds... --- src/jobs/build_docker.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/jobs/build_docker.yml b/src/jobs/build_docker.yml index c6f726e..6de83ad 100644 --- a/src/jobs/build_docker.yml +++ b/src/jobs/build_docker.yml @@ -9,6 +9,9 @@ parameters: dockerfile_dir: type: string default: "." + additional_docker_build_args: + type: string + default: "" docker_version: type: string default: "20.10.6" @@ -72,7 +75,8 @@ steps: --label "build.version=${APP_VERSION}" \ --label "build.number=${CIRCLE_BUILD_NUM}" \ --label "build.url=${CIRCLE_BUILD_URL}" \ - --label "build.gitref=${CIRCLE_SHA1}" + --label "build.gitref=${CIRCLE_SHA1}" \ + << parameters.additional_docker_build_args >> - when: condition: << parameters.persist_container_image >>