From 809adee77854a12bdfd481f73e8c48ede28e6517 Mon Sep 17 00:00:00 2001 From: Runebaas Date: Sat, 2 Mar 2019 01:57:43 -0500 Subject: [PATCH] Add Sentry Release Reporting (attempt 1) --- .gitlab-ci.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1ba3063..9f8432a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,6 @@ stages: - build + - ops - deploy before_script: @@ -19,6 +20,17 @@ build: - dotnet test Tests - dotnet publish --version-suffix ${CI_COMMIT_SHA:0:8} --configuration Release -o Binaries ./ +sentry: + stage: ops + image: getsentry/sentry-cli + only: + - master + dependencies: + - build + script: + - sentry-cli releases new -p geekbot 4.0.0-${CI_COMMIT_SHA:0:8} + - sentry-cli releases set-commits --auto 4.0.0-${CI_COMMIT_SHA:0:8} + deploy: stage: deploy image: runebaas/rsync-ssh-git @@ -26,6 +38,7 @@ deploy: - master dependencies: - build + - sentry environment: name: Production url: https://discordapp.com/oauth2/authorize?client_id=171249478546882561&scope=bot&permissions=1416834054 @@ -44,6 +57,8 @@ mirror: image: runebaas/rsync-ssh-git only: - master + dependencies: + - build + - sentry script: - git push https://runebaas:$TOKEN@github.com/pizzaandcoffee/Geekbot.net.git origin/master:master -f - \ No newline at end of file