Skip to content

Instantly share code, notes, and snippets.

@anarchivist
Last active January 8, 2018 07:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anarchivist/86aab60b603ab67818db012276e6252e to your computer and use it in GitHub Desktop.
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
{
"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