From ad9d9d33bcd322f9b41798867b9d47e1303eb68b Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Fri, 4 Nov 2022 18:17:14 +0100 Subject: [PATCH] Send sourcemaps to our sentry instance Signed-off-by: Thomas Citharel --- .gitlab-ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6ad4a1b3..926eeb0d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,6 +4,7 @@ stages: - install - check - build-js + - sentry - test - docker - package @@ -94,6 +95,21 @@ build-frontend: needs: - lint-front +sentry-commit: + stage: sentry + image: getsentry/sentry-cli + script: + - echo "Create a new release $CI_COMMIT_TAG" + - sentry-cli releases new $CI_COMMIT_TAG + - sentry-cli releases set-commits $CI_COMMIT_TAG --auto + - sentry-cli releases files $CI_COMMIT_TAG upload-sourcemaps priv/static/assets/ + - sentry-cli releases finalize $CI_COMMIT_TAG + - echo "Finalized release for $CI_COMMIT_TAG" + needs: + - build-frontend + only: + - tags@framasoft/mobilizon + deps: stage: check before_script: