Compare commits

...

2 Commits

Author SHA1 Message Date
Michael Ochmann ab78181146 Readme: changed link to config.sample file 5 months ago
Michael Ochmann 889cf236d2 added release script 5 months ago
  1. 2
      README.md
  2. 42
      release

@ -48,5 +48,5 @@ of that.
[torrent]: http://wiki.theory.org/BitTorrentSpecification [torrent]: http://wiki.theory.org/BitTorrentSpecification
[erdgeist]: https://erdgeist.org/about/ [erdgeist]: https://erdgeist.org/about/
[opentracker]: https://erdgeist.org/arts/software/opentracker/ [opentracker]: https://erdgeist.org/arts/software/opentracker/
[config]: https://erdgeist.org/gitweb/opentracker/tree/opentracker.conf.sample [config]: https://erdgeist.org/gitweb/opentracker/plain/opentracker.conf.sample
[repo]: https://git.mike-ochmann.de/miko/opentracker [repo]: https://git.mike-ochmann.de/miko/opentracker

@ -0,0 +1,42 @@
#!/usr/bin/env bash
build() {
sudo docker buildx build -t mikognn/opentracker:$1 --platform linux/amd64,linux/arm64,linux/arm64/v8,linux/arm/v7 .
echo "Do you want to push to docker.io? [Y/n] "
read answer
if [ "$answer" == "y" ] || [ "$answer" == "" ]; then
sudo docker push mikognn/opentracker:$1
else
echo "not pushing."
fi
}
help() {
cat << EOF
USAGE: release --version <version>
EOF
}
tag="latest"
while [ $# -gt 0 ]; do
case $1 in
--version|-v)
shift
if [ "$1" == "" ]; then
echo "ERROR: version missing"
help
exit 1
fi
tag=$1
shift
;;
*)
help
exit 1
;;
esac
shift
done
build $tag
Loading…
Cancel
Save