Skip to content

Commit

Permalink
Lag releases med sentrys vite plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbb committed Oct 12, 2023
1 parent 4fe1a4b commit e07dcd6
Show file tree
Hide file tree
Showing 4 changed files with 375 additions and 36 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
- run: npm run build
env:
PUBLIC_URL: https://cdn.nav.no/fager/min-side-arbeidsgiver/build/
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}

- uses: nais/docker-build-push@v0
id: dockerpush
Expand All @@ -53,17 +54,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 e07dcd6

Please sign in to comment.