feat: add dedicated portfolio Gitea runner

This commit is contained in:
2026-09-15 14:36:19 +03:30
commit 23196d6884
12 changed files with 313 additions and 0 deletions

24
scripts/gitea-compose.sh Executable file
View File

@@ -0,0 +1,24 @@
#!/usr/bin/env bash
set -Eeuo pipefail
repo_root="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)"
deployment_root="${GITEA_DEPLOYMENT_PATH:-$HOME/gitea-deployment}"
base_compose="$deployment_root/docker-compose.yml"
base_env="$deployment_root/.env"
if [[ ! -f "$base_compose" ]]; then
echo "Generic Gitea Compose file not found: $base_compose" >&2
exit 2
fi
if [[ ! -f "$base_env" ]]; then
echo "Generic Gitea environment file not found: $base_env" >&2
exit 2
fi
exec docker compose \
--project-name gitea-deployment \
--project-directory "$deployment_root" \
--env-file "$base_env" \
--file "$base_compose" \
--file "$repo_root/gitea.caddy.yaml" \
"$@"