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
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:
parent
8a07d661ce
commit
3dac14304e
|
@ -91,3 +91,18 @@ jobs:
|
||||||
|
|
||||||
flux tag artifact oci://${{ env.OCI_REPO }}/manifests:${{ gitea.head_ref || gitea.ref_name }} \
|
flux tag artifact oci://${{ env.OCI_REPO }}/manifests:${{ gitea.head_ref || gitea.ref_name }} \
|
||||||
$(echo "${{ steps.meta.outputs.tags }}" | sed -e 's/^.*:/--tag /')
|
$(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 }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user