Last active
January 8, 2018 07:51
-
-
Save anarchivist/86aab60b603ab67818db012276e6252e to your computer and use it in GitHub Desktop.
Beehive configuration for causing successful, production Netlify deploy events to fire off an update to a PuSH hub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Bees": [ | |
{ | |
"Name": "Superfeedr", | |
"Class": "httpbee", | |
"Description": "Superfeeder PuSH endpoint", | |
"Options": [] | |
}, | |
{ | |
"Name": "Netlify", | |
"Class": "webbee", | |
"Description": "Listens to outgoing webhooks from Netlify deploy events", | |
"Options": [ | |
{ | |
"Name": "address", | |
"Value": "0.0.0.0:3423" | |
} | |
] | |
} | |
], | |
"Actions": [ | |
{ | |
"ID": "730f6142-14a2-4f3d-4a93-0b7ac689b682", | |
"Bee": "Superfeedr", | |
"Name": "post", | |
"Options": [ | |
{ | |
"Name": "json", | |
"Type": "string", | |
"Value": null | |
}, | |
{ | |
"Name": "form", | |
"Type": "string", | |
"Value": "hub.mode=publish\u0026hub.url={{.json.url}}/*" | |
}, | |
{ | |
"Name": "url", | |
"Type": "url", | |
"Value": "https://anarchivist.superfeedr.com/" | |
} | |
] | |
} | |
], | |
"Chains": [ | |
{ | |
"Name": "Netlify to Superfeedr", | |
"Description": "On successful production deploy, notify Superfeedr via PuSH", | |
"Event": { | |
"Bee": "Netlify", | |
"Name": "post", | |
"Options": null | |
}, | |
"Filters": [ | |
"{{test eq .json.context \"production\"}}", | |
"{{test eq .json.state \"ready\"}}" | |
], | |
"Actions": [ | |
"730f6142-14a2-4f3d-4a93-0b7ac689b682" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment