Add Sentry source maps and release tracking
- @sentry/vite-plugin uploads source maps during Docker build - Release tagged with git SHA (SENTRY_RELEASE) on both client and server - Environment set to production/development for filtering - CD passes SENTRY_AUTH_TOKEN + SENTRY_RELEASE as Docker build args - docker-compose passes SENTRY_RELEASE to runtime containers Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
1a655d328f
commit
091fc0a4bd
12 changed files with 290 additions and 2 deletions
4
.github/workflows/cd.yml
vendored
4
.github/workflows/cd.yml
vendored
|
|
@ -45,6 +45,9 @@ jobs:
|
|||
tags: |
|
||||
ghcr.io/trails-cool/${{ matrix.app }}:latest
|
||||
ghcr.io/trails-cool/${{ matrix.app }}:${{ github.sha }}
|
||||
build-args: |
|
||||
SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}
|
||||
SENTRY_RELEASE=${{ github.sha }}
|
||||
|
||||
build-brouter:
|
||||
name: Build & Push BRouter Image
|
||||
|
|
@ -109,6 +112,7 @@ jobs:
|
|||
fi
|
||||
|
||||
# Pull latest images
|
||||
export SENTRY_RELEASE="${{ github.sha }}"
|
||||
docker compose pull
|
||||
|
||||
# Push database schema (starts postgres, waits for healthy)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue