Skip to content

Commit

Permalink
Fix sourcemap upload from Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
louptheron authored May 9, 2024
1 parent 23ad1c7 commit 34f142d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions infra/docker/app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,13 @@ COPY --from=buildFront /tmp/frontend/build /tmp/frontend/build

# Upload sourcemaps to sentry
RUN sentry-cli sourcemaps inject /tmp/frontend
RUN if [ "IS_RELEASE" = true ]; then sentry-cli \
RUN sentry-cli \
--url ${SENTRY_URL} \
--auth-token ${SENTRY_AUTH_TOKEN} \
sourcemaps upload /tmp/frontend \
--release ${VERSION} \
--org ${SENTRY_ORG} \
--project ${SENTRY_PROJECT} ; \
else echo "Not sending sourcemap to sentry" ; \
fi
--project ${SENTRY_PROJECT}

######################
# Create final image #
Expand Down

0 comments on commit 34f142d

Please sign in to comment.