Notify on build failure
All checks were successful
Build and deploy / Build container and manifests (push) Successful in 7m41s
kustomization/lldap-controller/b5ae0585 reconciliation succeeded

This commit is contained in:
Dreaded_X 2025-04-22 17:18:08 +02:00
parent 8a07d661ce
commit 3dac14304e
Signed by: Dreaded_X
GPG Key ID: 5A0CBFE3C3377FAA

View File

@ -91,3 +91,18 @@ jobs:
flux tag artifact oci://${{ env.OCI_REPO }}/manifests:${{ gitea.head_ref || gitea.ref_name }} \
$(echo "${{ steps.meta.outputs.tags }}" | sed -e 's/^.*:/--tag /')
- name: Notify build status
if: failure()
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
# TODO: Escaping issues need to be solved first
# format: markdown
message: |
🚨 *BUILD FAILED!*
${{ gitea.repository }} (#${{ gitea.run_number }})
[${{ gitea.ref }} @ ${{ gitea.sha }}]
> ${{ gitea.event.head_commit.message }}