15 lines
371 B
Bash
Executable File
15 lines
371 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
REPO_DIR="$(git rev-parse --show-toplevel)"
|
|
|
|
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"
|
|
else
|
|
echo "No supported container tool found." >&2
|
|
exit 1
|
|
fi
|