generated from karsten.jeppesen/KAJE-Template
Initial commit
All checks were successful
DMA-CSD-CICD/noah.pretzer/pipeline/head This commit looks good
All checks were successful
DMA-CSD-CICD/noah.pretzer/pipeline/head This commit looks good
This commit is contained in:
18
.workflow/verify_environment.sh
Normal file
18
.workflow/verify_environment.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
# Basic preflight checks.
|
||||
for bin in git curl jq; do
|
||||
if ! command -v "$bin" >/dev/null 2>&1; then
|
||||
echo "[ERROR] Required binary not found: $bin"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
|
||||
# Validate envs that must be present.
|
||||
: "${OLLAMA_API_URI:?Missing env OLLAMA_API_URI}"
|
||||
: "${OLLAMA_API_KEY:?Missing env OLLAMA_API_KEY}"
|
||||
: "${GITEA_API_URL:?Missing env GITEA_API_URL}"
|
||||
: "${GITEA_API_KEY:?Missing env GITEA_APP_KEY}"
|
||||
|
||||
echo "[OK] Preflight checks passed (git/curl/jq available and required env vars set)."
|
||||
Reference in New Issue
Block a user