diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index c5fdafd..f01dc49 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -102,3 +102,16 @@ jobs: git add helm/taskplaner/values.yaml git commit -m "chore: update image tag to ${SHORT_SHA} [skip ci]" || echo "No changes to commit" git push || echo "Push failed - may need to configure git credentials" + + notify: + needs: [test, build] + runs-on: ubuntu-latest + if: failure() + steps: + - name: Notify Slack on failure + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} + run: | + curl -X POST -H 'Content-type: application/json' \ + --data "{\"text\":\"Pipeline failed for ${{ gitea.repository }} on ${{ gitea.ref }}\"}" \ + $SLACK_WEBHOOK_URL