From 84a1476644222176bace74cd253e90666fbe4b49 Mon Sep 17 00:00:00 2001 From: Darcy Wong Date: Wed, 26 Nov 2025 09:00:38 +0700 Subject: [PATCH] feat: Pass builder configuration to Docker build Pass the builder configuration to the Docker build step This allows the Docker image to build dev dependencies for testing --- _common/docker.inc.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/_common/docker.inc.sh b/_common/docker.inc.sh index f52764b..6bde9e6 100644 --- a/_common/docker.inc.sh +++ b/_common/docker.inc.sh @@ -53,11 +53,15 @@ function _verify_vendor_is_not_folder() { function build_docker_container() { local IMAGE_NAME=$1 local CONTAINER_NAME=$2 + local BUILDER_CONFIGURATION="release" + if [[ $# -eq 3 ]]; then + BUILDER_CONFIGURATION=$3 + fi _verify_vendor_is_not_folder # Download docker image. --mount option requires BuildKit - DOCKER_BUILDKIT=1 docker build -t $IMAGE_NAME . + DOCKER_BUILDKIT=1 docker build -t $IMAGE_NAME --build-arg BUILDER_CONFIGURATION="${BUILDER_CONFIGURATION}" . } function start_docker_container() {