Skip to content

Commit

Permalink
fix: if no token
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud AMBROSELLI committed Sep 14, 2023
1 parent f19976b commit 9c51ff2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions dashboard/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ ENV SENTRY_ORG=incubateur
ENV SENTRY_URL=https://sentry.fabrique.social.gouv.fr/
ENV SENTRY_PROJECT=mano

RUN --mount=type=secret,id=sentry_auth_token export SENTRY_AUTH_TOKEN=$(cat /run/secrets/sentry_auth_token); \
yarn build && \
yarn sentry:sourcemaps
RUN --mount=type=secret,id=sentry_auth_token \
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

Expand Down

0 comments on commit 9c51ff2

Please sign in to comment.