Add Gitea Actions production deployment
Deploy TodoList / deploy (push) Failing after 1m42s

This commit is contained in:
2026-07-27 06:49:07 +00:00
parent 548c57b83a
commit 2690088423
2 changed files with 84 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
#!/usr/bin/env bash
set -Eeuo pipefail
umask 077
EXPECTED_USER="scaiuser"
PROJECT_DIR="/home/scaiuser/dwh_apps/fastapi-todolist"
if [[ "$(id -un)" != "$EXPECTED_USER" ]]; then
echo "Error: deployment entrypoint must run as $EXPECTED_USER" >&2
exit 1
fi
export XDG_RUNTIME_DIR="/run/user/$(id -u)"
export DBUS_SESSION_BUS_ADDRESS="unix:path=$XDG_RUNTIME_DIR/bus"
if [[ ! -S "$XDG_RUNTIME_DIR/bus" ]]; then
echo "Error: user systemd bus is unavailable" >&2
exit 1
fi
cd "$PROJECT_DIR"
exec ./scripts/release.sh