#!/bin/bash image_name=$1 image_tag=$2 if [[ -z $image_name ]]; then echo "An image name must be provided." exit 1 fi if [[ -z $image_tag ]]; then echo "An image tag must be provided." exit 1 fi ( cd "images/$image_name" podman build -t "$image_name:$image_tag" -f ./Dockerfile ) || exit 1