Skip to content

Commit

Permalink
chore(sentry) add sentry to webapp (#579)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtmr0x authored Dec 4, 2024
1 parent 7187a9a commit 9671985
Show file tree
Hide file tree
Showing 10 changed files with 148 additions and 7,847 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -560,3 +560,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GIT_TAG: ${{ env.GIT_TAG }}

- name: Publish Sentry Sourcemaps
uses: matbour/setup-sentry-cli@v2
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
run: make publish-sentry-sourcemaps
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ build-webapp:
mkdir -p ${DIST_FOLDER}
cd ./webapp && npm install && npm run release:hoop-ui && cd ../
tar -czf ${DIST_FOLDER}/webapp.tar.gz -C ./webapp/resources .
awk -F"'" '{printf "%s", $2}' ./webapp/src/webapp/version.js > ${DIST_FOLDER}/webapp_version.txt

extract-webapp:
mkdir -p ./rootfs/app/ui && tar -xf ${DIST_FOLDER}/webapp.tar.gz -C rootfs/app/ui/
Expand Down Expand Up @@ -118,4 +119,8 @@ release-aws-cf-templates:
aws s3 cp --region ap-southeast-2 ${DIST_FOLDER}/hoopdev-platform.template.yaml s3://hoopdev-platform-cf-ap-southeast-2/${VERSION}/hoopdev-platform.template.yaml
aws s3 cp --region ap-southeast-2 ${DIST_FOLDER}/hoopdev-platform.template.yaml s3://hoopdev-platform-cf-ap-southeast-2/latest/hoopdev-platform.template.yaml

publish-sentry-sourcemaps:
tar -xf ${DIST_FOLDER}/webapp.tar.gz
sentry-cli sourcemaps upload --release=$$(cat ${DIST_FOLDER}/webapp_version.txt) ./public/js/app.js.map

.PHONY: run-dev run-dev-postgres test-enterprise test-oss test generate-openapi-docs build build-dev-client build-webapp build-helm-chart build-gateway-bundle extract-webapp publish release release-aws-cf-templates swag-fmt
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9671985

Please sign in to comment.