mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 19:01:54 +00:00
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>
30 lines
937 B
Bash
Executable File
30 lines
937 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# Run local deploy workflow via act for ALL apps (linear matrix)
|
|
# Required:
|
|
# INFINITO_DEPLOY_TYPE server|workstation|universal
|
|
# INFINITO_DISTRO e.g. arch, debian, ubuntu
|
|
|
|
: "${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}, 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="" \
|
|
--container-options "--privileged" \
|
|
--network host
|