From d7fde71e15ebcef76eef7503cad3fbe0a2f12b15 Mon Sep 17 00:00:00 2001 From: Steve Dogiakos Date: Thu, 12 Mar 2026 13:56:40 -0600 Subject: [PATCH] Add ntfy success/failure notifications to Docker build workflow --- .github/workflows/docker-build.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 07e2b69..aa69982 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -53,3 +53,23 @@ jobs: labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max + + - name: Notify success + if: success() + run: | + curl -s -X POST "${{ secrets.NTFY_URL }}" \ + -H "Authorization: Bearer ${{ secrets.NTFY_TOKEN }}" \ + -H "Title: check-printing built ✓" \ + -H "Priority: default" \ + -H "Tags: white_check_mark" \ + -d "Image pushed: ${{ env.IMAGE_NAME }}@${{ github.sha }}" + + - name: Notify failure + if: failure() + run: | + curl -s -X POST "${{ secrets.NTFY_URL }}" \ + -H "Authorization: Bearer ${{ secrets.NTFY_TOKEN }}" \ + -H "Title: check-printing build failed ✗" \ + -H "Priority: high" \ + -H "Tags: x" \ + -d "Build failed on ${{ github.ref_name }} — ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"