From 6b4b22620639f58ef00f28502cce2e42f6c26a46 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Thu, 15 Feb 2024 01:42:13 -0800 Subject: [PATCH] Add notify step to druid and wizard pipelines --- .gitea/workflows/deploy-to-druid.yml | 9 +++++++++ .gitea/workflows/deploy-to-wizard.yml | 12 +++++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy-to-druid.yml b/.gitea/workflows/deploy-to-druid.yml index db5a33c..d8cdcd5 100644 --- a/.gitea/workflows/deploy-to-druid.yml +++ b/.gitea/workflows/deploy-to-druid.yml @@ -31,3 +31,12 @@ jobs: docker compose config > /dev/null done + Notify: + runs-on: druid + steps: + - name: Discord notification + uses: appleboy/discord-action@master + with: + webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }} + webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }} + args: '<@${{ secrets.DISCORD_ID_JAFNER }}> ${{ github.repository }} deploy to druid: ${{ job.status }}' diff --git a/.gitea/workflows/deploy-to-wizard.yml b/.gitea/workflows/deploy-to-wizard.yml index 3639053..88ffe80 100644 --- a/.gitea/workflows/deploy-to-wizard.yml +++ b/.gitea/workflows/deploy-to-wizard.yml @@ -43,4 +43,14 @@ jobs: key: ${{ secrets.SSH_KEY_DEPLOY_TO_WIZARD }} script: | cd ~/homelab/wizard/config - /bin/vbash show-config.sh \ No newline at end of file + /bin/vbash show-config.sh + + Notify: + runs-on: fighter + steps: + - name: Discord notification + uses: appleboy/discord-action@master + with: + webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }} + webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }} + args: '<@${{ secrets.DISCORD_ID_JAFNER }}> ${{ github.repository }} deploy to wizard: ${{ job.status }}'