Skip to content

Commit c303113

Browse files
committed
Fix sentry auth token usage
1 parent ec760a1 commit c303113

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.github/workflows/docker-publish.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ jobs:
5151
with:
5252
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
5353

54+
- name: Set Sentry auth tokeni
55+
env:
56+
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
57+
if: ${{ env.SENTRY_AUTH_TOKEN != '' }}
58+
run: "echo SENTRY_AUTH_TOKEN=\"$SENTRY_AUTH_TOKEN\" > frontend/.env.sentry-build-plugin"
59+
5460
# Build and push Docker image with Buildx (don't push on PR)
5561
# https://github.com/docker/build-push-action
5662
- name: Build and push Docker image

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ WORKDIR /tmp/frontend
5252

5353
RUN ["npx", "openapi-typescript", "/tmp/openapi.json", "-o", "src/api/schema.d.ts"]
5454

55-
ARG SENTRY_AUTH_TOKEN=""
56-
ENV SENTRY_AUTH_TOKEN=${SENTRY_AUTH_TOKEN}
5755
RUN ["npm", "run", "build"]
5856

5957
FROM python:3.12-slim-bookworm as production

frontend/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@ dist-ssr
2525
schema.d.ts
2626
# Sentry Config File
2727
.env.sentry-build-plugin
28+
29+
# Sentry Config File
30+
.env.sentry-build-plugin

0 commit comments

Comments
 (0)