Files
azure-image-chooser/build.sh

14 lines
363 B
Bash
Executable File

#!//usr/bin/env bash
IMAGE_NAME="azure-image-chooser"
IMAGE="docker.io/skoszewski/$IMAGE_NAME:latest"
# IMAGE="skdomlab.azurecr.io/$IMAGE_NAME"
if command -v docker > /dev/null; then
docker buildx build -t $IMAGE app
elif command -v container > /dev/null; then
container build -t $IMAGE app
else
echo "No suitable container tool found"
exit 1
fi