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>
44 lines
1.3 KiB
Bash
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 "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
|