From b930ac3905ab9189b5ad939bb37b0796da35e792 Mon Sep 17 00:00:00 2001 From: Olga Bulat Date: Thu, 19 Dec 2024 08:28:25 +0300 Subject: [PATCH] Use .env.sentry-build-plugin for Sentry auth token (#5292) * Use .env.sentry-build-plugin for auth token * Test if release works on pull request * Revert the test code --- frontend/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"; \