diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index eb95116..01a4667 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -72,7 +72,8 @@ notify_complete: - echo "${flow_id}" - curl -XPOST http://192.168.77.101:8123/api/webhook/voice-notifications-tC_8YKxMJIAaQRV5riKuC7Zl --data-raw 'message=portainer build job completed' - rm -rf /home/gitlab-runner/builds/1fLwHSKm2/0/jaydee/portainer.tmp - + rules: + - if: '$CI_COMMIT_MESSAGE =~ /build/' notify_failed: stage: notify # Should be in a later stage than the job that might fail when: on_failure # <-- This is the key keyword