Skip to content

Commit

Permalink
Merge pull request #1102 from navikt/sentry-release-v2
Browse files Browse the repository at this point in the history
Fix sentry release
  • Loading branch information
tu55eladd committed Apr 25, 2023
2 parents 06a38c4 + b4bd9a9 commit 9788ffa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,22 +41,6 @@ jobs:
secrets:
GCS_SA_KEY: ${{ secrets.GCS_SA_KEY_PROD }}

prod-ekstern-sentry-release:
needs: prod-ekstern
name: Upload sourcemaps to sentry (ekstern)
runs-on: ubuntu-latest
steps:
- uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: nav
SENTRY_PROJECT: aktivitetsplan
SENTRY_URL: https://sentry.gc.nav.no/
with:
environment: prod
version: ${{ github.sha }}
sourcemaps: './build'

prod-intern:
name: Deploy application to prod intern
needs: dev-intern
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/gcp-root.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,15 @@ jobs:
tag_name: release/dev/${{inputs.releaseName}}@${{ github.sha }}
release_name: ${{ inputs.releaseName }}
prerelease: true
- name: Create sentry release
if: ${{ inputs.bucket }} == 'aktivitetsplan-prod' # Bare ekstern
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: nav
SENTRY_PROJECT: aktivitetsplan
SENTRY_URL: https://sentry.gc.nav.no/
with:
environment: prod
version: ${{ github.sha }}
sourcemaps: './build'

0 comments on commit 9788ffa

Please sign in to comment.