19 lines
346 B
Bash
19 lines
346 B
Bash
|
#!/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
|