devtron icon indicating copy to clipboard operation
devtron copied to clipboard

Git commit hash/sha as an environment variable in pre and post deployment steps

Open onkarhoysalalivspace opened this issue 1 year ago • 4 comments

Summary

In pre and post-deployment steps, it is useful to have the commit hash/sha as an environment variables, which we could use for example in webhook calls.

Motivation

Let's say we need to integrate with a third-party tool that provides deployment analytics. In such a case, their webhooks require us to append the commit hash. While it is very easy to add a post-deployment step, currently not having the commit hash is being a blocker in integrating with such tooling.

Proposal

Having the git hash provided as an environment variable during the pre and post deployment steps.

AB#365

onkarhoysalalivspace avatar Jul 08 '22 07:07 onkarhoysalalivspace

@nishant-d @pghildiy Can you please review this request?

ankit-ls avatar Jul 08 '22 07:07 ankit-ls

@nishant-d @pghildiyal Could you please let us know the ETA for this?

onkarhoysalalivspace avatar Jul 14 '22 10:07 onkarhoysalalivspace

@nishant-d @pghildiyal Guys, any update on this? :)

onkarhoysalalivspace avatar Jul 21 '22 11:07 onkarhoysalalivspace

@pawan-59 please coordinate with @onkarhoysalalivspace

pghildiyal avatar Jul 21 '22 11:07 pghildiyal