#!/usr/bin/env bash # Build and push the server image. Tag = -, matching the # convention of the other mysources.co.uk images (e.g. authentik-qr-login). set -euo pipefail cd "$(dirname "$0")" REGISTRY="mysources.co.uk/michal" NAME="internaluploader-server" TAG="$(date +%Y%m%d)-$(git rev-parse --short=12 HEAD)" IMAGE="${REGISTRY}/${NAME}:${TAG}" podman build -t "${IMAGE}" . podman push "${IMAGE}" echo "pushed ${IMAGE}"