feat: add editable application drafts tests and gitea deploy workflow

This commit is contained in:
cesnimda
2026-03-22 18:42:14 +01:00
parent 8041b43f47
commit 1fe3a68901
6 changed files with 239 additions and 3 deletions
+19
View File
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."
if [ ! -f .env ]; then
echo "Missing .env in deployment directory"
exit 1
fi
export APP_VERSION="${APP_VERSION:-0.0.0}"
export APP_COMMIT_SHA="${APP_COMMIT_SHA:-unknown}"
export APP_BUILD_STAMP="${APP_BUILD_STAMP:-unknown}"
docker compose pull || true
docker compose build
docker compose up -d --remove-orphans
echo "Deployment complete: ${APP_VERSION} ${APP_COMMIT_SHA}"