ci: add discordops via webhook
Some checks failed
/ build-images (ubuntu-2204) (push) Has been cancelled
/ post-run (push) Has been cancelled
/ pre-run (push) Has been cancelled

This commit is contained in:
Marc 2024-07-21 13:25:34 -04:00
parent 751349437a
commit 32ffc099d3
Signed by: marc
GPG key ID: 048E042F22B5DC79

View file

@ -7,6 +7,14 @@ env:
REGISTRY_ENDPOINT: host.containers.internal:5000
jobs:
pre-run:
runs-on: ubuntu-latest
steps:
- uses: https://forge.karnov.club/marc/push-status-to-discord-action@main
with:
webhook-url: ${{secrets.DISCORD_WEBHOOK_URL}}
status: "Started"
init: true
build-images:
runs-on: ubuntu-latest
strategy:
@ -31,4 +39,19 @@ jobs:
run: |
podman push ${{ steps.image-metadata.outputs.full-image-name }} ${{ env.REGISTRY_ENDPOINT }}/forge-runners/${{ steps.image-metadata.outputs.full-image-name }}
podman push ${{ steps.image-metadata.outputs.full-image-name }} ${{ env.REGISTRY_ENDPOINT }}/forge-runners/${{ matrix.image-name }}:latest
post-run:
runs-on: ubuntu-latest
needs: [build-images]
steps:
- uses: https://forge.karnov.club/marc/push-status-to-discord-action@main
if: ${{success()}}
with:
webhook-url: ${{secrets.DISCORD_WEBHOOK_URL}}
status: "Success"
variant: "success"
- uses: https://forge.karnov.club/marc/push-status-to-discord-action@main
if: ${{failure()}}
with:
webhook-url: ${{secrets.DISCORD_WEBHOOK_URL}}
status: "Failure"
variant: "failure"