Added support for running on Podman and Docker.

This commit is contained in:
2025-08-14 21:35:05 +02:00
parent d2abe3fd27
commit ad637e696e
2 changed files with 23 additions and 3 deletions

View File

@@ -5,7 +5,17 @@ if [ -z "$AZURE_CLIENT_ID" ] || [ -z "$AZURE_TENANT_ID" ] || [ -z "$AZURE_CLIENT
exit 1
fi
podman run --rm \
if [ "$(command -v docker)" = "docker" ]
then
CMD="docker"
elif [ "$(command -v podman)" = "podman" ]; then
CMD="podman"
else
echo "No suitable container tool found"
exit 1
fi
$CMD run --rm \
-it \
-e AZURE_CLIENT_ID="$AZURE_CLIENT_ID" \
-e AZURE_TENANT_ID="$AZURE_TENANT_ID" \