chore/test-local-dev-builds (#2)

tested initial dev deployment to local k3d

Reviewed-on: https://codeberg.org/headshed/infctl-cli/pulls/2
Co-authored-by: jon brookes <jon@headshed.dev>
Co-committed-by: jon brookes <jon@headshed.dev>
This commit is contained in:
Jon Brookes 2025-07-16 18:50:16 +02:00 committed by Jon Brookes
parent 506142ccd7
commit e64666340a
35 changed files with 2625 additions and 334 deletions

View file

@ -0,0 +1,23 @@
#!/usr/bin/env bash
required_tools=("infctl" "pwgen" "kubectl" "k3d" "helm" "jq" "docker")
MISSING=false
check_required_tools() {
for tool in "${required_tools[@]}"; do
if ! command -v "$tool" &> /dev/null; then
echo "Error: $tool is not installed. Please install it to continue."
MISSING=true
fi
done
}
check_required_tools
if [ "$MISSING" = true ]; then
echo "Pre-flight checks failed. Please install the missing tools and try again."
exit 1
else
echo "Pre-flight checks have passed."
fi