phallstrom / slackistrano

Slack integration for Capistrano deployments.
MIT License
374 stars 74 forks source link

Change hook for deploy:finishing/'slack:deploy:updated' #72

Closed gonace closed 7 years ago

gonace commented 7 years ago

It would be great if I could overwrite these hooks, we have a lot of stuff going on after the actual deploy and need to change when 'slack:deploy:updated' should be triggered.

Regards, Erik

phallstrom commented 7 years ago

Interesting. I wonder if you could use anything mentioned here https://stackoverflow.com/questions/22712240/remove-hook-from-flow-in-capistrano-3 to remove the hook and re-add it later. I'm not sure how else I could make that easily configurable. ENV vars maybe but that's yucky. Let me know if you have any ideas.

gonace commented 7 years ago

Hi So the problem we're having is that Slackistrano runns before some of our "post deployment" steps that runs after 'deploy:finished' so this could result in that slackistrano post a "Success" then a "Failed".

I'll have a look at what you've recommended, I think that will suffice 👍