Files
computer-playbook/scripts/tests/deploy/act/app.sh
T
kevinveenbirkenbachandClaude Opus 4.7 356e3366be feat(make): consolidate local deploy into single make deploy router
Replace the seven separate deploy-* make targets with a single `make
deploy` recipe that maps short Make variables to the canonical
INFINITO_* environment variables and dispatches via the new
scripts/tests/deploy/local/deploy/main.sh router. main.sh and all
sub-scripts continue to read the long-form names, so Ansible passthrough
and container forwarding stay unchanged.

Short Make CLI now exposes apps, mode, purge, type, bundles, disabled,
and full_cycle as aliases. The router picks the verb folder
(initialize, reinstall, update) and scope (all, selection) based on the
chosen mode plus the presence of INFINITO_APPS or INFINITO_BUNDLES.

Also folds in the global INFINITO_TEST_DEPLOY_TYPE -> INFINITO_DEPLOY_TYPE
rename across default.env, passthrough handler, dotenv test, CI deploy
workflows, discovery scripts, and the server stage task.

Active contributor and agent-iteration docs, role-level Administration
and README files, the bundles README, and the deploy reset helper are
all retargeted to the new short CLI. docs/requirements/ entries stay
untouched as historical audit logs.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-21 20:22:28 +02:00

32 lines
1.1 KiB
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
# Run local deploy workflow via act for a single app (linear matrix)
# Required:
# INFINITO_APPS e.g. web-app-nextcloud
# INFINITO_DEPLOY_TYPE server|workstation|universal
# INFINITO_DISTRO e.g. arch, debian, ubuntu
: "${INFINITO_APPS:?INFINITO_APPS is not set (e.g. INFINITO_APPS=web-app-nextcloud)}"
: "${INFINITO_DEPLOY_TYPE:?INFINITO_DEPLOY_TYPE is not set (server|workstation|universal)}"
: "${INFINITO_DISTRO:?INFINITO_DISTRO is not set (e.g. arch, debian, ubuntu)}"
case "${INFINITO_DEPLOY_TYPE}" in
server | workstation | universal) ;;
*)
echo "Invalid INFINITO_DEPLOY_TYPE: ${INFINITO_DEPLOY_TYPE}" >&2
echo "Allowed: server | workstation | universal" >&2
exit 2
;;
esac
echo "=== act: deploy local (type=${INFINITO_DEPLOY_TYPE}, app=${INFINITO_APPS}, distros=${INFINITO_DISTRO}) ==="
act workflow_dispatch \
-W .github/workflows/test-deploy-local.yml \
--input test_deploy_type="${INFINITO_DEPLOY_TYPE}" \
--input distros="${INFINITO_DISTRO}" \
--input whitelist="${INFINITO_APPS}" \
--container-options "--privileged" \
--network host