24 lines
531 B
Bash
24 lines
531 B
Bash
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
QBT_VERSION="${1:-5.1.2}"
|
|
REGISTRY="gitea.futureporn.net/futureporn/qbittorrent-nox"
|
|
|
|
|
|
docker build \
|
|
--build-arg QBT_VERSION="$QBT_VERSION" \
|
|
--build-arg CACHE_BUST=$(date +%s) \
|
|
-t qbittorrent-nox:"$QBT_VERSION" \
|
|
.
|
|
|
|
docker tag qbittorrent-nox:"$QBT_VERSION" "$REGISTRY:$QBT_VERSION"
|
|
docker tag qbittorrent-nox:"$QBT_VERSION" "$REGISTRY:latest"
|
|
|
|
echo
|
|
read -n 1 -s -r -p "Press any key to publish or Ctrl+C to quit"
|
|
echo
|
|
|
|
|
|
docker push "$REGISTRY:$QBT_VERSION"
|
|
docker push "$REGISTRY:latest"
|