Files
Hardings-service/build-and-tag.sh
T

14 lines
408 B
Bash
Executable File

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