feat(deploy): publish Nodecast and Laya images together (#31)

Update the Docker build/push helper to build and push both application and Laya images, and document the configurable image targets.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
blomios
2026-10-06 21:18:24 +02:00
parent 4f8d3de7be
commit d64e5b6518
3 changed files with 70 additions and 2 deletions

View File

@ -5,8 +5,10 @@ set -euo pipefail
REGISTRY=${REGISTRY:-gitea.anthonybouteiller.ovh}
OWNER=${OWNER:-blomios}
IMAGE_NAME=${IMAGE_NAME:-nodecast-tv}
LAYA_IMAGE_NAME=${LAYA_IMAGE_NAME:-nodecast-tv-laya}
TAG=${TAG:-latest}
IMAGE="${REGISTRY}/${OWNER}/${IMAGE_NAME}:${TAG}"
LAYA_IMAGE="${REGISTRY}/${OWNER}/${LAYA_IMAGE_NAME}:${TAG}"
push_image=true
if [[ "${1:-}" == "--no-push" ]]; then
@ -23,8 +25,10 @@ fi
repo_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)
echo "Target image: ${IMAGE}"
echo "Target Nodecast image: ${IMAGE}"
echo "Target Laya image: ${LAYA_IMAGE}"
docker build --file "${repo_dir}/Dockerfile" --tag "${IMAGE}" "${repo_dir}"
docker build --file "${repo_dir}/Dockerfile.laya" --tag "${LAYA_IMAGE}" "${repo_dir}"
if [[ "${DRY_RUN:-false}" == "true" || "${push_image}" == "false" ]]; then
echo "Push skipped."
@ -32,3 +36,4 @@ if [[ "${DRY_RUN:-false}" == "true" || "${push_image}" == "false" ]]; then
fi
docker push "${IMAGE}"
docker push "${LAYA_IMAGE}"