Add initial script for image building

This commit is contained in:
Nico Schottelius 2024-02-17 18:27:44 +09:00
parent 5b5239d1d4
commit 169dc6b1ee

14
build-image.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/sh
if [ $# -lt 1 ]; then
echo "$0 imageversion [push]"
echo "If push is specified, also push to our harbor"
exit 1
fi
tagprefix=harbor.k8s.ungleich.ch/ungleich-public/dynamicweb
version=$1; shift
tag=${tagprefix}:${version}
docker build -t "${tag}" .