Skip to content

Commit

Permalink
[semver:patch] Allow additional cli args to be passed to docker build (
Browse files Browse the repository at this point in the history
…#85)

We'd like to pass additional `--build-arg` options to our builds...
  • Loading branch information
Darren Oakley authored Oct 21, 2021
1 parent 003e72e commit 1892151
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/jobs/build_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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 >>
Expand Down

0 comments on commit 1892151

Please sign in to comment.