feat: add sanitized internal main deployment

This commit is contained in:
2026-08-27 12:49:43 +03:00
parent 020619143e
commit d23951fd6d
8 changed files with 742 additions and 347 deletions

26
scripts/ci/smoke.sh Executable file
View File

@@ -0,0 +1,26 @@
#!/usr/bin/env bash
set -euo pipefail
smoke_url="${1:-}"
[[ "${smoke_url}" =~ ^https?:// ]] || {
printf 'a complete http(s) smoke URL is required\n' >&2
exit 1
}
for attempt in $(seq 1 24); do
if curl --fail --silent \
--connect-timeout 5 \
--max-time 15 \
--output /dev/null \
"${smoke_url}"; then
printf 'Smoke check passed.\n'
exit 0
fi
printf 'Smoke attempt %s/24 failed; retrying in 5 seconds.\n' "${attempt}" >&2
sleep 5
done
printf 'Smoke check failed after 24 attempts.\n' >&2
exit 1