#!/bin/bash
set -euo pipefail

REGISTRY="${REGISTRY:-forgejo.riotpiao.com}"
IMAGE="${REGISTRY}/rock/portfolio:latest"

echo "Building image: ${IMAGE}"
docker buildx build --platform linux/amd64 -t "${IMAGE}" .

echo "Pushing image..."
docker push "${IMAGE}"

echo "✓ Successfully pushed ${IMAGE}"
