gimlet icon indicating copy to clipboard operation
gimlet copied to clipboard

Post deploy actions

Open laszlocph opened this issue 4 years ago • 1 comments

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"

laszlocph avatar Mar 23 '21 07:03 laszlocph

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

jobn avatar Oct 14 '21 07:10 jobn