chore: add dev/deploy targets to Makefile, deploy.sh

This commit is contained in:
2026-07-11 21:43:55 +02:00
parent c4e9076b11
commit 35b82fc5b3
2 changed files with 38 additions and 1 deletions

21
deploy.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/usr/bin/env bash
set -euo pipefail
REGISTRY="registry.gabrielkaszewski.dev"
REPO="pocket-chords"
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"