feat(RHINENG-15883): Add image-builder to new sentry flow

This commit is contained in:
Adonis Puente 2025-02-11 11:18:47 -06:00 committed by Sanne Raymaekers
parent 95df46c885
commit 60fc68310d
2 changed files with 38 additions and 13 deletions

33
.github/workflows/sentry.yml vendored Normal file
View file

@ -0,0 +1,33 @@
name: sentryInit
on:
push:
branches:
- master
workflow_dispatch:
inputs:
commit_hash:
description: 'The commit hash (or branch/tag) to build'
required: false
default: ''
jobs:
createSentryRelease:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.commit_hash || 'refs/heads/master' }}
- name: Install dependencies
run: npm ci
- name: Build
env:
ENABLE_SENTRY: ${{ secrets.ENABLE_SENTRY }}
SENTRY_RELEASE: ${{ github.event.inputs.commit_hash && github.event.inputs.commit_hash }}
SENTRY_AUTH_TOKEN: ${{ github.event.inputs.commit_hash && secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
run: npm run build --if-present