From ca702da664c983b62b3821c86ad69135f0bbadd1 Mon Sep 17 00:00:00 2001 From: Arnaud AMBROSELLI Date: Mon, 9 Oct 2023 11:36:59 +0200 Subject: [PATCH] fix(dashboard): sentry back to pipeline --- 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