Skip to content

Commit

Permalink
Use .env.sentry-build-plugin for Sentry auth token (#5292)
Browse files Browse the repository at this point in the history
* Use .env.sentry-build-plugin for auth token

* Test if release works on pull request

* Revert the test code
  • Loading branch information
obulat authored Dec 19, 2024
1 parent d694acc commit b930ac3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ ENV SEMANTIC_VERSION=${SEMANTIC_VERSION}
# Use the Sentry auth token secret to send the sourcemaps to Sentry only if the secret is provided
RUN --mount=type=secret,id=sentry_auth_token,mode=0444 \
sh -c 'if [ -f /run/secrets/sentry_auth_token ]; then \
SENTRY_AUTH_TOKEN="$(cat /run/secrets/sentry_auth_token)"; \
SENTRY_AUTH_TOKEN="$(cat /run/secrets/sentry_auth_token)" && \
echo "SENTRY_AUTH_TOKEN=$SENTRY_AUTH_TOKEN" >> .env.sentry-build-plugin && \
echo "Using Sentry Auth Token: $SENTRY_AUTH_TOKEN"; \
else \
echo "No Sentry Auth Token provided"; \
Expand Down

0 comments on commit b930ac3

Please sign in to comment.