Fixing release pipeline

This commit is contained in:
Mistral Vibe
2026-04-10 11:31:29 +02:00
parent 411414b9c1
commit 9f552b47fd
8 changed files with 302 additions and 0 deletions

22
scripts/build-containers.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
set -euo pipefail
# Get current git tag, fall back to "latest" if no tags exist
TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "latest")
echo "Building container images with tag: $TAG"
# Build all services using docker compose
docker compose build --no-cache
echo "Tagging images for Gitea registry..."
# Tag all images with the current git tag
# Format: git.sschuhmann.de/owner/rehearsalhub/service:tag
docker tag rehearsalhub/api:latest git.sschuhmann.de/sschuhmann/rehearshalhub/api:$TAG
docker tag rehearsalhub/web:latest git.sschuhmann.de/sschuhmann/rehearshalhub/web:$TAG
docker tag rehearsalhub/audio-worker:latest git.sschuhmann.de/sschuhmann/rehearshalhub/worker:$TAG
docker tag rehearsalhub/nc-watcher:latest git.sschuhmann.de/sschuhmann/rehearshalhub/watcher:$TAG
echo "Build complete! Images tagged as: $TAG"
echo "Ready for upload to git.sschuhmann.de/sschuhmann/rehearsalhub"