mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 19:01:54 +00:00
Catches refactor drift across `.sh`, `Makefile` recursive calls, and GitHub workflows. Includes fixes for the 5 bugs the new test surfaced on first run: `make -C ROOT down`/`up` in the network stack refresh helper (missed during the compose-* rename) and four `make compose-deploymode=…` / `compose-deployapps=…` typos in 07/08/09_deploy_*.sh plus three docstring/echo references (missing space after `compose-deploy`, introduced by the deploy → compose-deploy sed-rename).
22 lines
937 B
Bash
Executable File
22 lines
937 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Deploy on performance hardware — deploy the full set of applications.
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
# shellcheck source=scripts/tests/environment/utils/common.sh
|
|
source "${SCRIPT_DIR}/utils/common.sh"
|
|
|
|
echo "Deploying matomo (full cycle: deploy + update pass) so it becomes reachable via its dedicated inventory entry."
|
|
make compose-deploy mode=reinstall apps="${MATOMO_APP}" INFINITO_FULL_CYCLE=true
|
|
inspect
|
|
|
|
echo "Re-trusting the CA after the fresh deploy rebuilt the certificates."
|
|
make network-trust-ca
|
|
|
|
echo "Verifying matomo is now reachable after its dedicated deploy."
|
|
assert_http_status 200 "${MATOMO_URL}"
|
|
|
|
echo "Verifying the dashboard is no longer reachable after the matomo-only fresh deploy."
|
|
# Expect 000 because curl aborts in TLS before HTTP when the removed hostname is missing from the certificate SANs.
|
|
assert_http_status 000 "${DASHBOARD_URL}"
|