diff --git a/frontend/Dockerfile b/frontend/Dockerfile index bf25a6a88be..1abbba5c7e1 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 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"; \