From 91d7b0c2781e314f797d89c8c4b48c61a81c57e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Aleksandrovi=C4=8D=20Klimov?= Date: Tue, 30 Jan 2024 10:02:27 +0100 Subject: [PATCH] build.bash: workaround a bug in docker buildx build CLI --build-context dirs seem to have to end with a / to be accepted. --- build.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.bash b/build.bash index 1ebdcde..4d6e9e3 100755 --- a/build.bash +++ b/build.bash @@ -26,7 +26,7 @@ if ! docker buildx version; then fi OUR_DIR="$(realpath "$(dirname "$0")")" -COMMON_ARGS=(-t "icinga/icingaweb2:$TAG" --build-context "icingaweb2-git=$(realpath "$IW2SRC")/.git" --build-arg "BUILD_MODE=$BUILD_MODE" "$OUR_DIR") +COMMON_ARGS=(-t "icinga/icingaweb2:$TAG" --build-context "icingaweb2-git=$(realpath "$IW2SRC")/.git/" --build-arg "BUILD_MODE=$BUILD_MODE" "$OUR_DIR") BUILDX=(docker buildx build --platform "$(cat "${OUR_DIR}/platforms.txt")") case "$ACTION" in