Files
deployment/scripts/notify-slack.sh
T
Cédric VerstraetenandCopilot 7bccddb995 Use persistent Garage S3 in local deployments and CI
Replace default MinIO operator installation with pinned non-root Garage, generated persistent credentials and authenticated S3 tests. Keep MinIO manifests intact for existing installations, add failure diagnostics and optional Slack handling, and align Kustomize chart pins.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-04 10:42:52 +00:00

17 lines
459 B
Bash

#!/usr/bin/env bash
set -euo pipefail
if [[ $# != 1 ]]; then
echo "Usage: bash scripts/notify-slack.sh MESSAGE" >&2
exit 1
fi
if [[ -z "${SLACK_WEBHOOK_URL:-}" ]]; then
echo "::warning::SLACK_WEBHOOK_URL is not configured; skipping optional Slack notification."
exit 0
fi
jq -n --arg text "$1" '{text: $text}' |
curl --fail-with-body --silent --show-error --retry 3 \
-H 'Content-Type: application/json' --data-binary @- "$SLACK_WEBHOOK_URL"