self-hosted/install/bootstrap-snuba.sh
Burak Yigit Kaya 3913a9f0c7
ci: Even better cache keys and granular caching (#3534)
Just starting up services for Snuba or Sentry migrations takes up to a minute sometimes and we do this even when there are no migrations, just because one of the Sentry or Snuba migrations change. This patch splits the caches up so only the necessary one runs, saving further time. It also uses the `LATEST_TAG` as the cache key for upgrade tests as the image versions or data will never change for a certain tag once it is release.
2025-01-16 10:10:14 -08:00

10 lines
249 B
Bash

echo "${_group}Bootstrapping and migrating Snuba ..."
if [[ -z "${SKIP_SNUBA_MIGRATIONS:-}" ]]; then
$dcr snuba-api bootstrap --force
else
echo "Skipped DB migrations due to SKIP_SNUBA_MIGRATIONS=$SKIP_SNUBA_MIGRATIONS"
fi
echo "${_endgroup}"