Caprover: Auto Deployment Notification

Created on 10 Apr 2019  路  4Comments  路  Source: caprover/caprover

HI,

I am thinking if we set up one of our application with git for continuous deployment and multiple user push new code every hour so there should any kind of notification on success and failures like NetData notification.

Why i am saying because no one want to login in Dashboard every time to see whats going on like net data monitor and inform via notification.

question

Most helpful comment

what i'm missing in the pre-deploy script is access to some build metrics.

e.g.

  • build start time
  • build end time
  • build success status
  • error message/stack-trace on failure

All 4 comments

We already have a hook for pre-deploy custom scripts:
https://caprover.com/docs/pre-deploy-script.html

You can register an account on an email service like Mailgun, or an SMS service like Twilio and just send an http request to their API to fire an email or SMS or any other notifications that you desire.

@githubsaturn i am talking about notification like get notification on Slack or any other source like Net Data. i dont think this in some way related to pre deploy script.

it is related. Notification from tools like slack are nothing more than an HTTP request to a Slack webhook. You can do this by sending an HTTP request to Slack inside your predeploy function.

what i'm missing in the pre-deploy script is access to some build metrics.

e.g.

  • build start time
  • build end time
  • build success status
  • error message/stack-trace on failure
Was this page helpful?
0 / 5 - 0 ratings

Related issues

dgpokl picture dgpokl  路  3Comments

rschaerer picture rschaerer  路  4Comments

dkimot picture dkimot  路  6Comments

polotto picture polotto  路  4Comments

icebob picture icebob  路  3Comments