Add Sentry Release Reporting (attempt 1)
This commit is contained in:
parent
35a4f4a122
commit
809adee778
1 changed files with 16 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
stages:
|
stages:
|
||||||
- build
|
- build
|
||||||
|
- ops
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
|
@ -19,6 +20,17 @@ build:
|
||||||
- dotnet test Tests
|
- dotnet test Tests
|
||||||
- dotnet publish --version-suffix ${CI_COMMIT_SHA:0:8} --configuration Release -o Binaries ./
|
- 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:
|
deploy:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
image: runebaas/rsync-ssh-git
|
image: runebaas/rsync-ssh-git
|
||||||
|
@ -26,6 +38,7 @@ deploy:
|
||||||
- master
|
- master
|
||||||
dependencies:
|
dependencies:
|
||||||
- build
|
- build
|
||||||
|
- sentry
|
||||||
environment:
|
environment:
|
||||||
name: Production
|
name: Production
|
||||||
url: https://discordapp.com/oauth2/authorize?client_id=171249478546882561&scope=bot&permissions=1416834054
|
url: https://discordapp.com/oauth2/authorize?client_id=171249478546882561&scope=bot&permissions=1416834054
|
||||||
|
@ -44,6 +57,8 @@ mirror:
|
||||||
image: runebaas/rsync-ssh-git
|
image: runebaas/rsync-ssh-git
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
dependencies:
|
||||||
|
- build
|
||||||
|
- sentry
|
||||||
script:
|
script:
|
||||||
- git push https://runebaas:$TOKEN@github.com/pizzaandcoffee/Geekbot.net.git origin/master:master -f
|
- git push https://runebaas:$TOKEN@github.com/pizzaandcoffee/Geekbot.net.git origin/master:master -f
|
||||||
|
|
Loading…
Reference in a new issue