Files
k-mood/deploy.sh
Gabriel Kaszewski 95739892de
Some checks failed
CI / ci (push) Failing after 1m48s
init
2026-08-25 23:24:36 +02:00

22 lines
391 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
REGISTRY="registry.gabrielkaszewski.dev"
REPO="k-mood"
tag="latest"
while [[ $# -gt 0 ]]; do
case $1 in
--tag) tag="$2"; shift 2 ;;
*) echo "usage: $0 [--tag T]" >&2; exit 1 ;;
esac
done
image="${REGISTRY}/${REPO}:${tag}"
echo "building ${image}"
docker buildx build --platform linux/amd64 \
-t "$image" --push .
echo "pushed $image"