Files
computer-playbook/scripts/tests/environment/09_deploy_reuse.sh
T
kevinveenbirkenbachandClaude Opus 4.7 eed1d89bb4 fix(test-env): re-pin matomo reuse-pass to VARIANT=1 to match leftover host state
Step 08 (`deploy-fresh-purged-apps … FULL_CYCLE=true`) iterates matomo's
two variants and skips the final inter-round purge, so the host ends on
variant 1 (mariadb.shared=false → embedded `database` service). The
previous pin to VARIANT=0 forced a variant flip (shared=true) on a host
still wired for variant 1, which left the freshly-rendered matomo
compose.yml referencing `database` without an image and tripped the
`compose config --quiet` validation handler with:

  service "database" has neither an image nor a build context specified:
  invalid compose project

Pinning the reuse pass to VARIANT=1 redeploys onto the same variant the
matrix last left running, which is the intended `reuse of existing
state` semantic from variants.md ("the last state remains available for
inspection or follow-up specs").

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-14 17:12:56 +02:00

12 lines
452 B
Bash
Executable File

#!/usr/bin/env bash
# Redeploy keeping inventory and apt packages — validates reuse of existing state.
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 "Redeploying matomo (variant 1) while keeping inventory and packages to validate state reuse."
make deploy-reuse-kept-apps APPS="${MATOMO_APP}" VARIANT=1
inspect