Files
marcandClaude Opus 5 230e55903e Make build.sh executable
It has always been run as ./build.sh, which the file's own header says,
and the bit for it was never set.

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

44 lines
1.3 KiB
Bash
Executable File

#!/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 "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"