feat: each error in Sentry names the commit it came from

The API image keeps the commit it was built from (RELEASE, from VCS_REF);
the API, the worker and the browser report it as the Sentry release
unless the stack sets IMAGE_TAG.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-11-11 15:59:27 -03:00
parent f2fa2b7748
commit 55419d8364
4 changed files with 14 additions and 5 deletions

View File

@@ -6,6 +6,8 @@ ARG PYTHON_BASE_IMAGE=python:3.12-slim@sha256:2f17fc044b579bab302c2e8054d3a686e2
FROM ${PYTHON_BASE_IMAGE}
ARG VCS_REF=unknown
# The commit this image was built from, as the Sentry release (app/observability.py).
ENV RELEASE=$VCS_REF
LABEL org.opencontainers.image.title="DTF Portal/API" \
org.opencontainers.image.revision="$VCS_REF" \
org.opencontainers.image.source="DTF System repository"