Compare commits
No commits in common. 'ab781811460ee70630fddf656ae4891adc56cedc' and '07829c817769c64f479b83cb92e8207c6978e7d5' have entirely different histories.
ab78181146
...
07829c8177
2 changed files with 1 additions and 43 deletions
@ -1,42 +0,0 @@ |
|||||||
#!/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…
Reference in new issue