add discord notifications

This commit is contained in:
Alberto Xamin 2021-08-19 10:36:28 +03:00
parent 6e8d038a6a
commit 80a9a61251
3 changed files with 28 additions and 1 deletions

View File

@ -71,3 +71,12 @@ jobs:
name: Inspect image
run: |
docker buildx imagetools inspect albertoxamin/bang:dev
- name: Notify discord
uses: th0th/notify-discord@v0.4.1
if: ${{ always() }}
env:
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_JOB_NAME: "Docker image :dev"
GITHUB_JOB_STATUS: ${{ job.status }}

View File

@ -61,3 +61,12 @@ jobs:
name: Inspect image
run: |
docker buildx imagetools inspect albertoxamin/bang:latest
- name: Notify discord
uses: th0th/notify-discord@v0.4.1
if: ${{ always() }}
env:
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_JOB_NAME: "Docker image main :latest"
GITHUB_JOB_STATUS: ${{ job.status }}

View File

@ -25,4 +25,13 @@ jobs:
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
run: |
python -m pytest
python -m pytest -p no:warnings
- name: Notify discord
uses: th0th/notify-discord@v0.4.1
if: ${{ always() }}
env:
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_JOB_NAME: "Backend tests"
GITHUB_JOB_STATUS: ${{ job.status }}