diff --git a/.gitea/workflows/lint-test-docker-pull.yaml b/.gitea/workflows/lint-test-docker-pull.yaml index 0e6be99d5..f57a808a9 100644 --- a/.gitea/workflows/lint-test-docker-pull.yaml +++ b/.gitea/workflows/lint-test-docker-pull.yaml @@ -70,3 +70,18 @@ jobs: echo ">> Linting $compose ..." npx dclint $compose done + + - name: ntfy Failed + uses: niniyas/ntfy-action@master + if: failure() + with: + url: '${{ secrets.NTFY_URL }}' + topic: '${{ secrets.NTFY_TOPIC }}' + title: 'Test Failure - Infrastructure' + priority: 3 + headers: '{"Authorization": "Bearer ${{ secrets.NTFY_CRED }}"}' + tags: action,failed + details: 'Docker linting on Pull Request for Infrastructure has failed!' + icon: 'https://cdn.jsdelivr.net/gh/selfhst/icons/png/gitea.png' + actions: '[{"action": "view", "label": "Open Gitea", "url": "https://gitea.alexlebens.dev/alexlebens/infrastructure/actions?workflow=lint-test-docker-pull.yaml", "clear": true}]' + image: true diff --git a/.gitea/workflows/lint-test-docker-push.yaml b/.gitea/workflows/lint-test-docker-push.yaml index 4b5738f8c..3065d1692 100644 --- a/.gitea/workflows/lint-test-docker-push.yaml +++ b/.gitea/workflows/lint-test-docker-push.yaml @@ -65,11 +65,11 @@ jobs: with: url: '${{ secrets.NTFY_URL }}' topic: '${{ secrets.NTFY_TOPIC }}' - title: 'Gitea Action' - priority: 3 + title: 'Test Failure - Infrastructure' + priority: 4 headers: '{"Authorization": "Bearer ${{ secrets.NTFY_CRED }}"}' tags: action,failed - details: 'Docker linting for infrastructure repo has failed!' + details: 'Docker linting on Push for Infrastructure has failed!' icon: 'https://cdn.jsdelivr.net/gh/selfhst/icons/png/gitea.png' - actions: '[{"action": "view", "label": "Open Gitea", "url": "https://gitea.alexlebens.dev/alexlebens/site-profile/actions?workflow=lint-test-docker-push.yaml", "clear": true}]' + actions: '[{"action": "view", "label": "Open Gitea", "url": "https://gitea.alexlebens.dev/alexlebens/infrastructure/actions?workflow=lint-test-docker-push.yaml", "clear": true}]' image: true diff --git a/.gitea/workflows/lint-test-helm-pull.yaml b/.gitea/workflows/lint-test-helm-pull.yaml index b66f293a5..7385d721e 100644 --- a/.gitea/workflows/lint-test-helm-pull.yaml +++ b/.gitea/workflows/lint-test-helm-pull.yaml @@ -73,3 +73,18 @@ jobs: echo ">> Linting $chart..." helm lint "$chart" done + + - name: ntfy Failed + uses: niniyas/ntfy-action@master + if: failure() + with: + url: '${{ secrets.NTFY_URL }}' + topic: '${{ secrets.NTFY_TOPIC }}' + title: 'Test Failure - Infrastructure' + priority: 3 + headers: '{"Authorization": "Bearer ${{ secrets.NTFY_CRED }}"}' + tags: action,failed + details: 'Helm linting on Pull Request for Infrastructure has failed!' + icon: 'https://cdn.jsdelivr.net/gh/selfhst/icons/png/gitea.png' + actions: '[{"action": "view", "label": "Open Gitea", "url": "https://gitea.alexlebens.dev/alexlebens/infrastructure/actions?workflow=lint-test-helm-pull.yaml", "clear": true}]' + image: true diff --git a/.gitea/workflows/lint-test-helm-push.yaml b/.gitea/workflows/lint-test-helm-push.yaml index 7c0cd04cd..4b62de2ee 100644 --- a/.gitea/workflows/lint-test-helm-push.yaml +++ b/.gitea/workflows/lint-test-helm-push.yaml @@ -68,11 +68,11 @@ jobs: with: url: '${{ secrets.NTFY_URL }}' topic: '${{ secrets.NTFY_TOPIC }}' - title: 'Gitea Action' - priority: 3 + title: 'Test Failure - Infrastructure' + priority: 4 headers: '{"Authorization": "Bearer ${{ secrets.NTFY_CRED }}"}' tags: action,failed - details: 'Helm linting for infrastructure repo has failed!' + details: 'Helm linting on Push for Infrastructure has failed!' icon: 'https://cdn.jsdelivr.net/gh/selfhst/icons/png/gitea.png' - actions: '[{"action": "view", "label": "Open Gitea", "url": "https://gitea.alexlebens.dev/alexlebens/site-profile/actions?workflow=lint-test-docker-push.yaml", "clear": true}]' + actions: '[{"action": "view", "label": "Open Gitea", "url": "https://gitea.alexlebens.dev/alexlebens/infrastructure/actions?workflow=lint-test-helm-push.yaml", "clear": true}]' image: true