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

View File

@@ -0,0 +1,39 @@
#!/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 "Uploading container images to Gitea registry with tag: $TAG"
# Simple check - just try to push and let Docker handle authentication
echo "Attempting to push images to git.sschuhmann.de..."
# Push all images to Gitea registry
echo "Pushing api image..."
docker push git.sschuhmann.de/sschuhmann/rehearsalhub/api:$TAG || {
echo "Failed to push api image. Check your authentication:"
echo " 1. Run: docker login git.sschuhmann.de"
echo " 2. Check: cat ~/.docker/config.json"
exit 1
}
echo "Pushing web image..."
docker push git.sschuhmann.de/sschuhmann/rehearsalhub/web:$TAG || {
echo "Failed to push web image"
exit 1
}
echo "Pushing worker image..."
docker push git.sschuhmann.de/sschuhmann/rehearsalhub/worker:$TAG || {
echo "Failed to push worker image"
exit 1
}
echo "Pushing watcher image..."
docker push git.sschuhmann.de/sschuhmann/rehearsalhub/watcher:$TAG || {
echo "Failed to push watcher image"
exit 1
}
echo "✅ Upload complete! All images pushed to git.sschuhmann.de/sschuhmann/rehearsalhub:$TAG"