Files
InkNote/build.sh
T
marcandClaude Opus 5 dc33d614ad Point the registry at the namespace that actually exists
The images were tagged gitea.../marc/..., a placeholder that was never
changed and is not a Gitea account, so every push failed with a 404 and
the images had in fact never been published. The registry owner is honey.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-07 17:02:19 +02:00

44 lines
1.3 KiB
Bash

#!/bin/bash
set -e
REGISTRY="gitea.honeyy.duckdns.org"
OWNER="${GITEA_OWNER:-honey}"
TAG="${1:-latest}"
FRONTEND_IMAGE="${REGISTRY}/${OWNER}/inknote-web:${TAG}"
BACKEND_IMAGE="${REGISTRY}/${OWNER}/inknote-server:${TAG}"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo " InkNote — Build & Push to Gitea"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""
echo " Frontend: ${FRONTEND_IMAGE}"
echo " Backend: ${BACKEND_IMAGE}"
echo ""
echo "→ Logging in to ${REGISTRY}..."
docker login "${REGISTRY}"
echo ""
echo "→ Building backend..."
docker build -t "${BACKEND_IMAGE}" ./backend
echo ""
echo "→ Building frontend..."
docker build -t "${FRONTEND_IMAGE}" ./frontend
echo ""
echo "→ Pushing backend..."
docker push "${BACKEND_IMAGE}"
echo ""
echo "→ Pushing frontend..."
docker push "${FRONTEND_IMAGE}"
echo ""
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo " ✅ Done! Both images pushed to:"
echo " ${FRONTEND_IMAGE}"
echo " ${BACKEND_IMAGE}"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"