mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-10 12:47:04 +00:00
* Replace ONLY_APP with space-separated WHITELIST across CI and local/act deploy tests * Rename build-test-matrix.sh to scripts/meta/resolve/apps.sh and apply optional whitelist filter * Add manual CI entry workflow to run orchestrator with distros/whitelist inputs https://chatgpt.com/share/698c406c-0968-800f-ae84-1bcca023363c
32 lines
1.0 KiB
Bash
Executable File
32 lines
1.0 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# Run local deploy workflow via act for a single app (linear matrix)
|
|
# Required:
|
|
# APP e.g. web-app-nextcloud
|
|
# TEST_DEPLOY_TYPE server|workstation|universal
|
|
# INFINITO_DISTRO e.g. arch, debian, ubuntu
|
|
|
|
: "${APP:?APP is not set (e.g. APP=web-app-nextcloud)}"
|
|
: "${TEST_DEPLOY_TYPE:?TEST_DEPLOY_TYPE is not set (server|workstation|universal)}"
|
|
: "${INFINITO_DISTRO:?INFINITO_DISTRO is not set (e.g. arch, debian, ubuntu)}"
|
|
|
|
case "${TEST_DEPLOY_TYPE}" in
|
|
server|workstation|universal) ;;
|
|
*)
|
|
echo "Invalid TEST_DEPLOY_TYPE: ${TEST_DEPLOY_TYPE}" >&2
|
|
echo "Allowed: server | workstation | universal" >&2
|
|
exit 2
|
|
;;
|
|
esac
|
|
|
|
echo "=== act: deploy local (type=${TEST_DEPLOY_TYPE}, app=${APP}, distros=${INFINITO_DISTRO}) ==="
|
|
|
|
act workflow_dispatch \
|
|
-W .github/workflows/test-deploy-local.yml \
|
|
--input test_deploy_type="${TEST_DEPLOY_TYPE}" \
|
|
--input distros="${INFINITO_DISTRO}" \
|
|
--input whitelist="${APP}" \
|
|
--container-options "--privileged" \
|
|
--network host
|