Skip to content

Commit

Permalink
Revert "Temporarely disable Sentry source uploading while server is u…
Browse files Browse the repository at this point in the history
…nder maintenance"

This reverts commit 044209d.
  • Loading branch information
ivangabriele committed Jun 20, 2024
1 parent 2bb9f48 commit 1d0701c
Showing 1 changed file with 41 additions and 42 deletions.
83 changes: 41 additions & 42 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -300,51 +300,50 @@ jobs:
run: npm run test:multi-windows:run
working-directory: ./frontend

# generate_and_upload_source_maps:
# name: Generate and upload source maps to Sentry
# needs: [version, build, unit_test_backend, unit_test_frontend, e2e_test, e2e_multi_windows_test]
# if: needs.version.outputs.IS_RELEASE && !contains(github.ref, 'dependabot')
# runs-on: ubuntu-22.04
# env:
# VERSION: ${{ needs.version.outputs.VERSION }}
# SENTRY_URL: ${{ secrets.SENTRY_URL }}
# SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
# SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
# SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# fetch-depth: 100

# - name: Download image
# uses: ishworkh/docker-image-artifact-download@v1
# with:
# image: monitorfish-app:${{ env.VERSION }}

# - name: Extract frontend build files
# run: |
# docker create --name monitorfish-temp monitorfish-app:${{ env.VERSION }}
# docker cp monitorfish-temp:/home/monitorfish/public/assets ./frontend_build
# docker rm monitorfish-temp
# - name: Generate and upload source maps to Sentry
# uses: getsentry/action-release@v1
# with:
# environment: ${{ env.ENV_PROFILE }}
# version: ${{ env.VERSION }}
# sourcemaps: ./frontend_build
# ignore_missing: true
# ignore_empty: true
# env:
# SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
# SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
# SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
# SENTRY_URL: ${{ secrets.SENTRY_URL }}
generate_and_upload_source_maps:
name: Generate and upload source maps to Sentry
needs: [version, build, unit_test_backend, unit_test_frontend, e2e_test, e2e_multi_windows_test]
if: needs.version.outputs.IS_RELEASE && !contains(github.ref, 'dependabot')
runs-on: ubuntu-22.04
env:
VERSION: ${{ needs.version.outputs.VERSION }}
SENTRY_URL: ${{ secrets.SENTRY_URL }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 100

- name: Download image
uses: ishworkh/docker-image-artifact-download@v1
with:
image: monitorfish-app:${{ env.VERSION }}

- name: Extract frontend build files
run: |
docker create --name monitorfish-temp monitorfish-app:${{ env.VERSION }}
docker cp monitorfish-temp:/home/monitorfish/public/assets ./frontend_build
docker rm monitorfish-temp
- name: Generate and upload source maps to Sentry
uses: getsentry/action-release@v1
with:
environment: ${{ env.ENV_PROFILE }}
version: ${{ env.VERSION }}
sourcemaps: ./frontend_build
ignore_missing: true
ignore_empty: true
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
SENTRY_URL: ${{ secrets.SENTRY_URL }}

push_to_registry:
name: Push to registry
# needs: [version, unit_test_backend, unit_test_frontend, e2e_test, e2e_multi_windows_test, generate_and_upload_source_maps]
needs: [version, unit_test_backend, unit_test_frontend, e2e_test, e2e_multi_windows_test]
needs: [version, unit_test_backend, unit_test_frontend, e2e_test, e2e_multi_windows_test, generate_and_upload_source_maps]
runs-on: ubuntu-22.04
if: needs.version.outputs.IS_RELEASE && !contains(github.ref, 'dependabot')
env:
Expand Down

0 comments on commit 1d0701c

Please sign in to comment.