diff --git a/scripts/build.sh b/scripts/build.sh index 8878608..7e49f09 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -2,13 +2,13 @@ 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 - container build -t "registry.koszewscy.waw.pl/kerberos:latest" "$REPO_DIR" -elif command -v docker >/dev/null 2>&1; then - docker buildx bake --file "$REPO_DIR/docker-bake.hcl" +if command -v container 2>/dev/null; then + container build -t "registry.koszewscy.waw.pl/openldap:latest" "$REPO_DIR" +elif command -v docker 2>/dev/null; then + docker buildx bake --file "$REPO_DIR"/scripts/docker-bake.hcl else - echo "No supported container tool found." >&2 + echo "No supported container tool found." exit 1 fi