Files
InkNote/build.sh
T
marcandClaude Opus 5 55a6b3caab Correct the registry namespace to the Docker org
The previous commit moved the images to honey/, which was wrong: the
images have lived under the Docker organisation since February, alongside
learning-tracker and whopays, and are linked to this repository there.
Only the placeholder 'marc' was never real.

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

44 lines
1.3 KiB
Bash

#!/bin/bash
set -e
REGISTRY="gitea.honeyy.duckdns.org"
OWNER="${GITEA_OWNER:-docker}"
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 "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"