Add startup and completion messages
All checks were successful
Build and push / post-finish-message (push) Has been skipped
Build and push / post-startup-message (push) Successful in 4s
Build and push / detect-changed-files (push) Successful in 5s
Build and push / Lint-Python (push) Has been skipped
Build and push / Build-and-Push-Docker (push) Has been skipped
Build and push / sync-argocd-app (push) Has been skipped

Adding discord webhooks to ci/cd
This commit is contained in:
Luke Robles 2024-05-03 11:16:19 -07:00
parent 60cee3cbbd
commit c38bb2d724

View File

@ -3,6 +3,15 @@ run-name: ${{ gitea.actor }} Triggered a new run 🚀
on: [push] on: [push]
jobs: jobs:
post-startup-message:
runs-on: ubuntu-latest
steps:
- uses: sarisia/actions-status-discord@v1
if: always()
with:
title: "Pipeline is starting"
webhook: ${{ secrets.DISCORD_WEBHOOK }}
avatar_url: "https://git.luker.fr/assets/img/logo.svg"
detect-changed-files: detect-changed-files:
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs: outputs:
@ -76,3 +85,15 @@ jobs:
version: 2.6.7 version: 2.6.7
command: app command: app
options: --insecure --server 192.168.1.205 --auth-token ${{ secrets.ARGOCD_TOKEN }} set dragon-bot --helm-set image.tag=${{ gitea.run_id }} options: --insecure --server 192.168.1.205 --auth-token ${{ secrets.ARGOCD_TOKEN }} set dragon-bot --helm-set image.tag=${{ gitea.run_id }}
post-finish-message:
runs-on: ubuntu-latest
if: ${{ (steps.Build-and-Push-Docker.outcome == 'success') }}
steps:
- uses: sarisia/actions-status-discord@v1
if: always()
with:
title: "Pipeline has completed successfully"
status:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
avatar_url: "https://git.luker.fr/assets/img/logo.svg"