ungleich-containers/opennebula-docker/build.sh
2024-12-21 15:44:01 +01:00

18 lines
346 B
Bash
Executable file

#!/bin/sh
if [ $# -ne 1 ]; then
echo $1 version
echo $(git describe --always)
exit 1
fi
version=$1; shift
set -e
docker build -t harbor.k8s.ungleich.ch/ungleich-public/opennebula-docker:$version .
echo "Press enter to push, ctr-c for abort"
read foo
docker push harbor.k8s.ungleich.ch/ungleich-public/opennebula-docker:$version