gimlet
gimlet copied to clipboard
Post deploy actions
The task is to extend the Gimlet manifest with post deploy actions.
Potentially the developer experience could look like this:
# .gimlet/staging.yaml
app: myapp
env: staging
namespace: my-team
deploy:
branch: main
event: push
+ notify:
+ - target: github-comment
+ message: "A new preview environment was deployed on myapp-{{ .BRANCH }}.mycompany.com"
chart:
repository: https://chart.onechart.dev
name: onechart
version: 0.15.3
values:
[...]
Or it could be a generic webhook
deploy:
branch: main
event: push
+ notify:
+ - target: webhook
+ url: mysystem.mycompanny.com
Or a Slack/Teams/etc channel or DM
deploy:
branch: main
event: push
+ notify:
+ - target: slack
+ channel: "#my-team"
+ message: "A new preview environment was deployed on myapp-{{ .BRANCH }}.mycompany.com"
I would like this very much. Defining the post-deploy actions in the manifest in the repo gives a great amount of flexibility across our services and teams. For us, a github comment would be sufficient