Files
azure-image-chooser/build.sh

18 lines
387 B
Bash
Executable File

#!/bin/bash
IMAGE_NAME="azure-image-chooser"
#IMAGE="docker.io/skoszewski/$IMAGE_NAME"
IMAGE="skdomlab.azurecr.io/$IMAGE_NAME"
if [ "$(basename $(command -v docker))" = "docker" ]; then
CMD="docker"
elif [ "$(basename $(command -v podman))" = "podman" ]; then
CMD="podman"
else
echo "No suitable container tool found"
exit 1
fi
$CMD build -t $IMAGE .
$CMD push $IMAGE