#!/usr/bin/env bash # Build the container image and tag it for the registry. # Usage: ./build-and-tag.sh e.g. ./build-and-tag.sh v1 set -e IMAGE=hardings-service REGISTRY=registry.digitalsorcery.net TAG="${1:?usage: $0 }" podman build -t "${IMAGE}:${TAG}" -f Containerfile . podman tag "${IMAGE}:${TAG}" "${REGISTRY}/${IMAGE}:${TAG}" echo "Push with: podman push ${REGISTRY}/${IMAGE}:${TAG}"