From 62ccdab6afe361f93b52526ac4e21118ad815e41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Aleksandrovi=C4=8D=20Klimov?= Date: Fri, 26 Jan 2024 12:02:16 +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 9f53094..9a3fe50 100755 --- a/build.bash +++ b/build.bash @@ -25,7 +25,7 @@ if ! docker buildx version; then fi OUR_DIR="$(realpath "$(dirname "$0")")" -COMMON_ARGS=(-t "icinga/icinga2:$TAG" --build-context "icinga2-git=$(realpath "$I2SRC")/.git" "$OUR_DIR") +COMMON_ARGS=(-t "icinga/icinga2:$TAG" --build-context "icinga2-git=$(realpath "$I2SRC")/.git/" "$OUR_DIR") BUILDX=(docker buildx build --platform "$(cat "${OUR_DIR}/platforms.txt")") case "$ACTION" in