All checks were successful
Build Docker Image / build (push) Successful in 38s
14 lines
407 B
Bash
Executable File
14 lines
407 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Find container runtime
|
|
if command -v docker &> /dev/null; then
|
|
echo "Using Dokcer as container runtime."
|
|
docker buildx build -t skoszewski/azure-cli:latest .
|
|
elif command -v container &> /dev/null; then
|
|
# Apple container command line tool
|
|
container build -t skoszewski/azure-cli:latest .
|
|
else
|
|
echo "Error: No usable container runtime was found." >&2
|
|
exit 1
|
|
fi
|