#!/usr/bin/env bash set -euo pipefail project_dir=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd) sh -n "${project_dir}/install.sh" bash -n "${project_dir}/migrate.sh" bash -n "${project_dir}/create-ci-kubeconfig.sh" if grep -q '/komposthaufen' "${project_dir}/install.sh"; then echo 'install.sh must not inspect node-local media paths on the admin machine.' >&2 exit 1 fi if grep -q 'plex-archlinux-migration' "${project_dir}/install.sh"; then echo 'install.sh must not depend on the one-time migration Job.' >&2 exit 1 fi if command -v docker >/dev/null 2>&1 && docker info >/dev/null 2>&1; then for manifest in namespace.yaml plex.yaml migration-job.yaml; do docker run --rm --interactive \ ghcr.io/yannh/kubeconform:v0.7.0 \ -strict -ignore-missing-schemas -summary < "${project_dir}/${manifest}" done docker run --rm --interactive \ ghcr.io/yannh/kubeconform:v0.7.0 \ -strict -summary < "${project_dir}/ci-deployer.yaml" fi