Page MenuHomeDevCentral

Accept mail notifications for DockerHub build failures
ClosedPublic

Authored by dereckson on Sep 1 2016, 19:30.

Details

Summary

The Docker Hub has currently an API to fire webhooks event when the
notification fails, but no mechanism to fire such notification when
a build fails.

But such notifications exist, by mail. We so accept incoming mail
Mailgun payloads to process them and fire a DockerHub buildFailure
notification.

Fixes T1000.

Diff Detail

Repository
rNOTIF Notifications center
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

dereckson updated this revision to Diff 1604.Sep 1 2016, 19:30
dereckson retitled this revision from to Accept mail notifications for DockerHub build failures.
dereckson updated this object.
dereckson edited the test plan for this revision. (Show Details)
dereckson added a subscriber: Sandlayth.
dereckson updated this revision to Diff 1605.Sep 1 2016, 19:49

Use Mailgun facade defined in D640.

dereckson updated this revision to Diff 1608.Sep 1 2016, 20:58

Extract URL and link from text, tests are ok now.

dereckson updated this revision to Diff 1610.Sep 2 2016, 02:13

Rebased.

dereckson planned changes to this revision.Sep 2 2016, 16:09
dereckson added inline comments.
app/Notifications/DockerHubNotification.php
121

Use two classes instead here.

dereckson updated this revision to Diff 1624.Sep 2 2016, 17:56

Each DockerHub payload have its own analyzer class.

dereckson planned changes to this revision.Sep 2 2016, 20:12
dereckson marked an inline comment as done.
dereckson added inline comments.
app/Analyzers/DockerHub/BaseEvent.php
6

Double space.

dereckson updated this revision to Diff 1625.Sep 2 2016, 20:13
dereckson marked an inline comment as done.

Double space → single space in class declarations.

This revision was automatically updated to reflect the committed changes.