integrate Slack notification

This commit is contained in:
Matthias 2019-11-12 09:39:30 +01:00
parent a241c2af0d
commit 37ef5c38f0
2 changed files with 38 additions and 5 deletions

View File

@ -91,6 +91,17 @@ jobs:
run: | run: |
./tests/test_docs.sh ./tests/test_docs.sh
- name: Slack Notification
uses: homoluctus/slatify@v1.8.0
if: always()
with:
type: ${{ job.status }}
job_name: '*Freqtrade CI ${{ matrix.os }}*'
mention: 'here'
mention_if: 'failure'
channel: '#notifications'
url: ${{ secrets.SLACK_WEBHOOK }}
build_windows: build_windows:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
@ -141,6 +152,17 @@ jobs:
run: | run: |
mypy freqtrade scripts mypy freqtrade scripts
- name: Slack Notification
uses: homoluctus/slatify@v1.8.0
if: always()
with:
type: ${{ job.status }}
job_name: '*Freqtrade CI windows*'
mention: 'here'
mention_if: 'failure'
channel: '#notifications'
url: ${{ secrets.SLACK_WEBHOOK }}
deploy: deploy:
needs: [ build, build_windows ] needs: [ build, build_windows ]
runs-on: ubuntu-18.04 runs-on: ubuntu-18.04
@ -173,3 +195,14 @@ jobs:
cache: ${{ github.event_name != 'schedule' }} cache: ${{ github.event_name != 'schedule' }}
tag_names: true tag_names: true
- name: Slack Notification
uses: homoluctus/slatify@v1.8.0
if: always()
with:
type: ${{ job.status }}
job_name: '*Freqtrade CI Deploy*'
mention: 'here'
mention_if: 'failure'
channel: '#notifications'
url: ${{ secrets.SLACK_WEBHOOK }}

View File

@ -45,11 +45,11 @@ jobs:
- script: mypy freqtrade scripts - script: mypy freqtrade scripts
name: mypy name: mypy
- stage: docker # - stage: docker
if: branch in (master, develop, feat/improve_travis) AND (type in (push, cron)) # if: branch in (master, develop, feat/improve_travis) AND (type in (push, cron))
script: # script:
- build_helpers/publish_docker.sh # - build_helpers/publish_docker.sh
name: "Build and test and push docker image" # name: "Build and test and push docker image"
notifications: notifications:
slack: slack: