Skip to content

Commit

Permalink
Merge pull request #5579 from dodona-edu/chore/sentry-release-integra…
Browse files Browse the repository at this point in the history
…tion

Create sentry release upon build
  • Loading branch information
jorg-vr authored Jun 4, 2024
2 parents 108acfe + 842d95e commit 98a795c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/deploy-naos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,18 @@ jobs:
token: ${{secrets.GITHUB_TOKEN}}
label: deploy naos
type: remove
- name: Get tag name
id: tag_name
run: echo "tag_name=$(date +'%Y.%m.%d-%H:%M')" >> "$GITHUB_ENV"
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Create Sentry release
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: dodona
SENTRY_PROJECT: dodona-frontend
with:
environment: staging
version: ${{ env.tag_name }}
15 changes: 15 additions & 0 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,18 @@ jobs:
- name: Run deploy
run: |
echo "deploy production $GITHUB_SHA" | ssh -p 4840 [email protected]
- name: Get tag name
id: tag_name
run: echo "tag_name=$(date +'%Y.%m.%d-%H:%M')" >> "$GITHUB_ENV"
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Create Sentry release
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: dodona
SENTRY_PROJECT: dodona-frontend
with:
environment: production
version: ${{ env.tag_name }}

0 comments on commit 98a795c

Please sign in to comment.