Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Use .env.sentry-build-plugin for Sentry auth token (#5292)
Olga Bulatb930ac3905ab
diff --git a/frontend/Dockerfile b/frontend/Dockerfileindex bf25a6a88..1abbba5c7 100644--- a/frontend/Dockerfile+++ b/frontend/Dockerfile@@ -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 providedRUN --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"; \