15 lines
367 B
Bash
15 lines
367 B
Bash
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
REPO_DIR="$(git rev-parse --show-toplevel)"
|
|
|
|
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."
|
|
exit 1
|
|
fi
|