All checks were successful
Build and Push Docker Images / Build Backend (FastAPI) (push) Successful in 34s
Build and Push Docker Images / Build Frontend (Next.js) (push) Successful in 1m4s
Build and Push Docker Images / Build Integrator (push) Successful in 56s
Build and Push Docker Images / Build Kestra Init (push) Successful in 32s
Build and Push Docker Images / Trigger Portainer Update (push) Successful in 1s
kestra/kestra:latest is ~500MB; the registry rejects the push. The init container only needs to POST flow YAMLs to the Kestra REST API (/api/v1/flows/import), which curl handles fine from a tiny alpine base. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
18 lines
413 B
Bash
18 lines
413 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
KESTRA_URL="${KESTRA_URL:-http://kestra:8080}"
|
|
|
|
echo "Importing flows into Kestra at ${KESTRA_URL}..."
|
|
|
|
for f in /flows/*.yml; do
|
|
echo " -> $(basename "$f")"
|
|
curl -sf -X POST "${KESTRA_URL}/api/v1/flows/import" \
|
|
-H "Content-Type: multipart/form-data" \
|
|
-F "fileUpload=@${f}" \
|
|
|| { echo "Failed to import $(basename "$f")"; exit 1; }
|
|
echo ""
|
|
done
|
|
|
|
echo "All flows imported."
|