rename package to hardings-service, add build-and-tag script
This commit is contained in:
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/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}"
|
||||
Reference in New Issue
Block a user