Skip to content

Commit 131a43c

Browse files
committed
ci: add Sentry env vars to Docker image build step
Pass VITE_SENTRY_DSN, VITE_SENTRY_ENVIRONMENT, VITE_APP_VERSION, SENTRY_AUTH_TOKEN, SENTRY_ORG, and SENTRY_PROJECT to the build step so that the Docker image build (dev, integration, and release tags) includes Sentry instrumentation and source map uploads, matching the Cloudflare deploy workflow. Environment mapping: - dev branch / release tags → production - integration branch / manual dispatch without tag → preview
1 parent f4d4d59 commit 131a43c

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/docker-publish.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,12 @@ jobs:
9090
env:
9191
VITE_BUILD_HASH: ${{ steps.vars.outputs.short_sha }}
9292
VITE_IS_RELEASE_TAG: ${{ steps.release_tag.outputs.is_release }}
93+
VITE_SENTRY_DSN: ${{ secrets.VITE_SENTRY_DSN }}
94+
VITE_SENTRY_ENVIRONMENT: ${{ (steps.release_tag.outputs.is_release == 'true' || github.ref == 'refs/heads/dev') && 'production' || 'preview' }}
95+
VITE_APP_VERSION: ${{ github.ref_name }}
96+
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
97+
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
98+
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
9399
run: |
94100
NODE_OPTIONS=--max_old_space_size=4096 pnpm run build
95101

0 commit comments

Comments
 (0)