From 4bf65bd504d3f00085e47e30fa20562695e2c358 Mon Sep 17 00:00:00 2001 From: Arnaud Ambroselli <31724752+arnaudambro@users.noreply.github.com> Date: Tue, 10 Oct 2023 04:44:47 +0200 Subject: [PATCH] fix(dashboard): sentry back to pipeline (#1714) --- dashboard/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dashboard/Dockerfile b/dashboard/Dockerfile index 756985946..bfc9b96e2 100644 --- a/dashboard/Dockerfile +++ b/dashboard/Dockerfile @@ -16,7 +16,11 @@ COPY dashboard/. . ENV NODE_ENV=production RUN --mount=type=secret,id=sentry_auth_token \ - yarn build; + yarn build; \ + if [ -f "/run/secrets/sentry_auth_token" ]; then \ + export SENTRY_AUTH_TOKEN=$(cat /run/secrets/sentry_auth_token); \ + yarn sentry:sourcemaps; \ + fi FROM ghcr.io/socialgouv/docker/nginx4spa:7.0.1