feat: add scripts for pre-flight checks and user input wait in k3s pipeline

This commit is contained in:
jon brookes 2025-10-14 17:49:59 +01:00
parent f23e1c41ff
commit 02b114e0e6
3 changed files with 71 additions and 0 deletions

View file

@ -1,5 +1,8 @@
#!/bin/bash
# Redirect all output to a log file for reliability
exec > /tmp/startup.log 2>&1
INFCTL_GIT_REPO="https://codeberg.org/headshed/infctl-cli.git"
INFCTL_GIT_REPO_BRANCH="main"
INFCTL_INSTALL_DIR="/opt/src"
@ -123,6 +126,7 @@ source /opt/src/infctl-cli/.env
if [[ "$INSTALL_FORGEJO" == "true" ]]; then
# install forgejo using infctl
# ....
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
LOG_FORMAT=none infctl -f "${INFCTL_INSTALL_DIR}/infctl-cli/gcloud/tf/scripts/install-forgejo-pipeline.json"
touch /etc/forgejo_was_installed