One-way upload server: authentik SSO pairing (QR + app-initiated deep link), hashed device tokens, streamed sha256-verified uploads into the metube directory as <sha256>.<ext>. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
15 lines
439 B
Bash
Executable File
15 lines
439 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Build and push the server image. Tag = <date>-<git sha>, matching the
|
|
# convention of the other mysources.co.uk images (e.g. authentik-qr-login).
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")"
|
|
|
|
REGISTRY="mysources.co.uk/michal"
|
|
NAME="internaluploader-server"
|
|
TAG="$(date +%Y%m%d)-$(git rev-parse --short=12 HEAD)"
|
|
IMAGE="${REGISTRY}/${NAME}:${TAG}"
|
|
|
|
podman build -t "${IMAGE}" .
|
|
podman push "${IMAGE}"
|
|
echo "pushed ${IMAGE}"
|