ungleich-containers/opennebula-docker/build.sh

19 lines
346 B
Bash
Raw Permalink Normal View History

2024-12-21 14:44:01 +00:00
#!/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