#!/usr/bin/env bash # Upload a folder of source maps (with their chunks, as scripts/sourcemaps.mjs # collect leaves them) to Bugsink. Bugsink finds a map by the debug ID alone, # so the release name doesn't matter, but it keeps maps per project: every # project that gets events for these chunks needs them. # # BUGSINK_AUTH_TOKEN upload token; without it the upload is skipped with a notice # BUGSINK_URL default https://bugsink.internal.bulwarkmail.org/ # BUGSINK_PROJECTS default "bulwark-instances bulwark-telemetry" # SENTRY_CLI_VERSION default 3.8.2 # # https://bulwarkmail.org/docs/deployment/monitoring set -euo pipefail dir="${1:?usage: upload-sourcemaps.sh