Files
feedc0de 49f1692e44
Validate and deploy phpPgAdmin / Validate manifests (push) Successful in 22s
Validate and deploy phpPgAdmin / Deploy to Kubernetes (push) Successful in 40s
Deploy phpPgAdmin with maintained public image
2026-08-08 23:02:42 +02:00

29 lines
865 B
Bash
Executable File

#!/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}/create-ci-kubeconfig.sh"
validate_file() {
local manifest=$1
if command -v kubeconform >/dev/null 2>&1; then
kubeconform -strict -ignore-missing-schemas -summary "${manifest}"
elif command -v docker >/dev/null 2>&1; then
docker run --rm --interactive \
ghcr.io/yannh/kubeconform:v0.7.0@sha256:85dbef6b4b312b99133decc9c6fc9495e9fc5f92293d4ff3b7e1b30f5611823c \
-strict -ignore-missing-schemas -summary < "${manifest}"
else
echo "Required command not found: install kubeconform or Docker" >&2
exit 1
fi
}
validate_file "${project_dir}/phppgadmin.yaml"
validate_file "${project_dir}/ci-deployer.yaml"
echo "phpPgAdmin scripts and Kubernetes resources are valid."