fix: update REPO_DIR assignment for accurate path resolution in build script

This commit is contained in:
2026-05-16 23:20:29 +02:00
parent a4dcab9cf8
commit d26cf91422
+6 -6
View File
@@ -2,13 +2,13 @@
set -e set -e
REPO_DIR="$(git rev-parse --show-toplevel)" REPO_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
if command -v container >/dev/null 2>&1; then if command -v container 2>/dev/null; then
container build -t "registry.koszewscy.waw.pl/kerberos:latest" "$REPO_DIR" container build -t "registry.koszewscy.waw.pl/openldap:latest" "$REPO_DIR"
elif command -v docker >/dev/null 2>&1; then elif command -v docker 2>/dev/null; then
docker buildx bake --file "$REPO_DIR/docker-bake.hcl" docker buildx bake --file "$REPO_DIR"/scripts/docker-bake.hcl
else else
echo "No supported container tool found." >&2 echo "No supported container tool found."
exit 1 exit 1
fi fi