Files
MobilityOps/deploy/unraid/setup-alert-receiver.sh
NuklearRabbit acd8b82b09
MobilityOps acceptance / backend (push) Failing after 20s
MobilityOps acceptance / frontend (push) Successful in 26s
MobilityOps acceptance / e2e (push) Skipped
M44: harden release integrity and assurance
2026-08-21 18:32:02 +02:00

14 lines
727 B
Bash
Executable File

#!/bin/sh
set -eu
container_name="${1:-n8n}"
source_workflow="${2:-n8n/workflows/fleet-ops-alert-receiver.json}"
[ -f "$source_workflow" ] || { echo "Missing workflow export: $source_workflow" >&2; exit 1; }
docker inspect "$container_name" >/dev/null 2>&1 || { echo "n8n container not found" >&2; exit 1; }
container_workflow="/tmp/fleet-ops-alert-receiver.json"
trap 'docker exec "$container_name" rm -f "$container_workflow" >/dev/null 2>&1 || true' EXIT
docker cp "$source_workflow" "$container_name:$container_workflow" >/dev/null
docker exec "$container_name" n8n import:workflow --input="$container_workflow"
echo "Imported Fleet Ops alert receiver. Resolve the named Header Auth credential and publish the workflow."