mirror of https://github.com/statping/statping
sentry github workflow
parent
27249bd22e
commit
b9cee7a796
|
@ -387,6 +387,47 @@ jobs:
|
||||||
MJML_PRIVATE: ${{ secrets.MJML_PRIVATE }}
|
MJML_PRIVATE: ${{ secrets.MJML_PRIVATE }}
|
||||||
run: make build-folders build-linux build-linux-arm build-darwin build-win compress-folders
|
run: make build-folders build-linux build-linux-arm build-darwin build-win compress-folders
|
||||||
|
|
||||||
|
sentry-release:
|
||||||
|
needs: build-binaries
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Statping Repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Setting ENV's
|
||||||
|
run: echo ::set-env name=VERSION::$(cat version.txt)
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
- name: Download Compiled Frontend (rice-box.go)
|
||||||
|
uses: actions/download-artifact@v1
|
||||||
|
with:
|
||||||
|
name: static-rice-box
|
||||||
|
path: ./source
|
||||||
|
|
||||||
|
- name: Sentry Backend Release
|
||||||
|
uses: tclindner/sentry-releases-action@v1.0.0
|
||||||
|
env:
|
||||||
|
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
||||||
|
SENTRY_URL: ${{ secrets.SENTRY_URL }}
|
||||||
|
SENTRY_ORG: statping
|
||||||
|
SENTRY_PROJECT: backend
|
||||||
|
with:
|
||||||
|
tagName: v${{ env.VERSION }}
|
||||||
|
environment: dev
|
||||||
|
|
||||||
|
- name: Sentry Frontend Release
|
||||||
|
uses: mathrix-education/setup-sentry-cli@master
|
||||||
|
with:
|
||||||
|
version: latest
|
||||||
|
url: ${{ secrets.SENTRY_URL }}
|
||||||
|
token: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
||||||
|
organization: statping
|
||||||
|
project: frontend
|
||||||
|
run: |
|
||||||
|
sentry-cli releases new -p frontend v$VERSION
|
||||||
|
sentry-cli releases set-commits --auto v$VERSION
|
||||||
|
sentry-cli releases files v$VERSION upload-sourcemaps source/dist
|
||||||
|
|
||||||
docker-release:
|
docker-release:
|
||||||
needs: [test, test-postman-sqlite, test-postman-mysql, test-postman-postgres]
|
needs: [test, test-postman-sqlite, test-postman-mysql, test-postman-postgres]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
@ -498,15 +498,17 @@ jobs:
|
||||||
environment: production
|
environment: production
|
||||||
|
|
||||||
- name: Sentry Frontend Release
|
- name: Sentry Frontend Release
|
||||||
uses: tclindner/sentry-releases-action@v1.0.0
|
uses: mathrix-education/setup-sentry-cli@master
|
||||||
env:
|
|
||||||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
|
||||||
SENTRY_URL: ${{ secrets.SENTRY_URL }}
|
|
||||||
SENTRY_ORG: statping
|
|
||||||
SENTRY_PROJECT: frontend
|
|
||||||
with:
|
with:
|
||||||
tagName: v${{ env.VERSION }}
|
version: latest
|
||||||
environment: production
|
url: ${{ secrets.SENTRY_URL }}
|
||||||
|
token: ${{ secrets.SENTRY_AUTH_TOKEN }}
|
||||||
|
organization: statping
|
||||||
|
project: frontend
|
||||||
|
run: |
|
||||||
|
sentry-cli releases new -p frontend v$VERSION
|
||||||
|
sentry-cli releases set-commits --auto v$VERSION
|
||||||
|
sentry-cli releases files v$VERSION upload-sourcemaps source/dist
|
||||||
|
|
||||||
homebrew-release:
|
homebrew-release:
|
||||||
needs: upload-release
|
needs: upload-release
|
||||||
|
@ -537,7 +539,7 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Slack Notification
|
- name: Slack Notification
|
||||||
uses: rtCamp/action-slack-notify@v2.0.0
|
uses: rtCamp/action-slack-notify@master
|
||||||
env:
|
env:
|
||||||
SLACK_WEBHOOK: ${{ secrets.SLACK_URL }}
|
SLACK_WEBHOOK: ${{ secrets.SLACK_URL }}
|
||||||
SLACK_CHANNEL: dev
|
SLACK_CHANNEL: dev
|
||||||
|
|
Loading…
Reference in New Issue