fix: update REPO_DIR assignment for accurate path resolution in build script
This commit is contained in:
+6
-6
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user