Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sentry release for dogfood instance #1768

Merged
merged 14 commits into from
Oct 21, 2022
18 changes: 6 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,14 @@ jobs:
force: ${{ github.event.inputs.force }}
calver: true
- name: Create new release in self-hosted Sentry
uses: getsentry/action-release@v1
env:
SENTRY_DSN: 'https://19555c489ded4769978daae92f2346ca@self-hosted.getsentry.net/3'
chadwhitacre marked this conversation as resolved.
Show resolved Hide resolved
SENTRY_ORG: self-hosted
SENTRY_PROJECT: installer
SENTRY_URL: https://self-hosted.getsentry.net/
SENTRY_AUTH_TOKEN: ${{ secrets.SELF_HOSTED_RELEASE_TOKEN }}
SENTRY_RELEASE: ${{ github.event.inputs.version }}
run: |
curl -sL https://sentry.io/get-cli/ | bash

# Create new Sentry release
sentry-cli --auth-token $SENTRY_AUTH_TOKEN releases new -p $SENTRY_PROJECT $SENTRY_RELEASE
sentry-cli --auth-token $SENTRY_AUTH_TOKEN releases set-commits --auto $SENTRY_RELEASE
sentry-cli --auth-token $SENTRY_AUTH_TOKEN releases finalize $SENTRY_RELEASE

# Create new deploy for this Sentry release
sentry-cli --auth-token $SENTRY_AUTH_TOKEN releases deploys $SENTRY_RELEASE new -e production
with:
environment: production
version: ${{ env.RELEASE_VERSION }}
emmatyping marked this conversation as resolved.
Show resolved Hide resolved
ignore_empty: true
ignore_missing: true