Make compatible with docker and podman

This commit is contained in:
2023-01-11 14:45:11 +02:00
parent 67cbbed496
commit e173a9d129

View File

@@ -14,9 +14,14 @@ if [ "${#}" -gt "0" ]; then
fi
fi
#docker build
CONTAINER_CMD="podman build --format docker"
if ! [ -x "$(command -v podman)" ]; then
echo 'podman not installed, using docker' >&2
CONTAINER_CMD="docker build"
fi
DOCKER_BUILD_CMD=(
podman build --format docker
"${CONTAINER_CMD}"
"${PROJECT_DIR}"
--tag "${TAG}"
"${BUILD_ARGS}"