From b1f84d441f7a7e88771c2703d1fc49968ef32242 Mon Sep 17 00:00:00 2001 From: Marijn Doeve Date: Fri, 3 Jul 2026 13:28:22 +0200 Subject: [PATCH] fix: align SENTRY_RELEASE env var with the release created by the Sentry action (#169) The Sentry action receives the v-stripped version (e.g. 0.1.1) but the app's SENTRY_RELEASE was set to IMAGE_TAG (e.g. v0.1.1). This caused Sentry to auto-create a second release from incoming events, labelling it (non-semver) instead of associating events with the properly created release. Pass SENTRY_RELEASE as a separate query param through the Portainer webhook (using the already-computed sentry_version output) and reference that in compose.prod.yaml instead of IMAGE_TAG. --- .github/workflows/ci.yml | 2 +- compose.prod.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 56d4763..fb365c6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -244,4 +244,4 @@ jobs: env: PORTAINER_WEBHOOK: ${{secrets.PORTAINER_WEBHOOK}} run: | - curl -v -X POST "${PORTAINER_WEBHOOK}?IMAGE_TAG=${{steps.meta.outputs.tag}}" --fail-with-body + curl -v -X POST "${PORTAINER_WEBHOOK}?IMAGE_TAG=${{steps.meta.outputs.tag}}&SENTRY_RELEASE=${{steps.meta.outputs.sentry_version}}" --fail-with-body diff --git a/compose.prod.yaml b/compose.prod.yaml index af51704..6ed27ed 100644 --- a/compose.prod.yaml +++ b/compose.prod.yaml @@ -10,7 +10,7 @@ services: MAILER_DSN: ${MAILER_DSN} MAILER_SENDER: ${MAILER_SENDER} SENTRY_DSN: ${SENTRY_DSN} - SENTRY_RELEASE: ${IMAGE_TAG} + SENTRY_RELEASE: ${SENTRY_RELEASE} SENTRY_ENVIRONMENT: ${SENTRY_ENVIRONMENT} labels: - "traefik.enable=true"