Merge pull request #119 from Icinga/Al2Klimov-patch-2

build.bash: workaround a bug in docker buildx build CLI
This commit is contained in:
Alexander Aleksandrovič Klimov 2024-01-26 13:58:43 +01:00 committed by GitHub
commit 77a2812636
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,7 +25,7 @@ if ! docker buildx version; then
fi fi
OUR_DIR="$(realpath "$(dirname "$0")")" 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")") BUILDX=(docker buildx build --platform "$(cat "${OUR_DIR}/platforms.txt")")
case "$ACTION" in case "$ACTION" in