Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Notify team on image build failures (#2331)

Adam Rutkowskiaa97e9cf894b
diff --git a/.github/workflows/build-private-images.yml b/.github/workflows/build-private-images.yml
index 2d2609a191..a66223274d 100644
--- a/.github/workflows/build-private-images.yml
+++ b/.github/workflows/build-private-images.yml
@@ -47,3 +47,12 @@ jobs:
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
+
+ - name: Notify team on failure
+ if: ${{ failure() }}
+ uses: fjogeleit/http-request-action@v1
+ with:
+ url: ${{ secrets.BUILD_NOTIFICATION_URL }}
+ method: 'POST'
+ customHeaders: '{"Content-Type": "application/json"}'
+ data: '{"content": "<a href=\"https://github.com/plausible/analytics/actions/workflows/build-private-images.yml\">Build failed</a>"}'
diff --git a/.github/workflows/build-public-images.yml b/.github/workflows/build-public-images.yml
index 1228d8211c..de51460430 100644
--- a/.github/workflows/build-public-images.yml
+++ b/.github/workflows/build-public-images.yml
@@ -46,3 +46,12 @@ jobs:
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
+
+ - name: Notify team on failure
+ if: ${{ failure() }}
+ uses: fjogeleit/http-request-action@v1
+ with:
+ url: ${{ secrets.BUILD_NOTIFICATION_URL }}
+ method: 'POST'
+ customHeaders: '{"Content-Type": "application/json"}'
+ data: '{"content": "<a href=\"https://github.com/plausible/analytics/actions/workflows/build-public-images.yml\">Build failed</a>"}'