Skip to content

Commit

Permalink
Merge pull request #1707 from navikt/sentry_vite_plugin
Browse files Browse the repository at this point in the history
Lag releases med sentrys vite plugin
  • Loading branch information
peterbb authored Oct 12, 2023
2 parents 4cb92f0 + c0be07a commit 4b947ac
Show file tree
Hide file tree
Showing 4 changed files with 381 additions and 36 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ jobs:
- run: npm run build
env:
PUBLIC_URL: https://cdn.nav.no/fager/min-side-arbeidsgiver/build/
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_LOG_LEVEL: info

- uses: nais/docker-build-push@v0
id: dockerpush
Expand All @@ -53,17 +55,6 @@ jobs:
source: ./build/
destination: '/min-side-arbeidsgiver'

- name: Lag sentry release
continue-on-error: true
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
run: |
npx -p @sentry/cli sentry-cli releases new "${{ github.sha }}"
npx -p @sentry/cli sentry-cli releases files "${{ github.sha }}" upload-sourcemaps build/static/js \
--url-prefix '~/min-side-arbeidsgiver/static/js'
npx -p @sentry/cli sentry-cli releases set-commits --auto "${{ github.sha }}"
npx -p @sentry/cli sentry-cli releases finalize "${{ github.sha }}"
- name: Deploy til dev-gcp
uses: nais/deploy/actions/deploy@v1
if: github.ref == 'refs/heads/master'
Expand Down
Loading

0 comments on commit 4b947ac

Please sign in to comment.