diff --git a/build-and-tag.sh b/build-and-tag.sh new file mode 100755 index 0000000..a7caad7 --- /dev/null +++ b/build-and-tag.sh @@ -0,0 +1,13 @@ +#!/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}" diff --git a/package.json b/package.json index c303d79..f8a3a73 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "hardingsclocks-atrex", + "name": "hardings-service", "version": "1.0.0", "description": "Repair tracker for Harding's Clocks", "private": true,