#!/bin/sh -e
#
# podman build

if [ -z "$1" ]; then
  podman build .
  IMG_ID=$(podman images --format "{{.ID}}" | head -n 1)
  echo "${IMG_ID}" | pbcopy
else
  podman build --tag "$1" .
fi
