diff --git a/src/watcloud_utils/sentry.py b/src/watcloud_utils/sentry.py index ffb575d..8e84aa5 100644 --- a/src/watcloud_utils/sentry.py +++ b/src/watcloud_utils/sentry.py @@ -43,7 +43,7 @@ def set_up_sentry( image_rev = build_labels.get("org.opencontainers.image.revision", "unknown_rev") SENTRY_RELEASE = ( - getvar(Vars.SENTRY_RELEASE, logger=logger) + getvar(Vars.SENTRY_RELEASE, warn_if_missing=not BUILD_INFO, logger=logger) or f"{image_title}:{image_version}@{image_rev}" )