Replies: 1 comment
-
|
You could probably use https://docs.kargo.io/user-guide/reference-docs/promotion-steps/set-metadata to check if freight has |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What I'm trying to do is post a Slack thread per Freight, which encompasses deployment to multiple stages. In the simplest possible case what I'm trying to do is the following:
I have a project with 2 Stages, staging and prod.
New slack message: "Starting deploy of xyz to staging"
Reply in thread: "Deploy to staging complete"
Reply in thread: "Starting deploy to prod"
Reply in thread: "Prod deploy complete"
https://api.slack.com/messaging/webhooks
https://docs.kargo.io/user-guide/reference-docs/promotion-steps/http/#posting-to-slack
With Slack webhooks this is done by setting
thread_tsto thetsvalue returned by the original message. This works fine for the initial staging deploy because you can store the output of thestarting_deploystep, reference thetsin there to passthread_ts. What's unclear to me is if there's a way to pass thetsfrom the staging State, to the prod Stage. It doesn't look like you necessarily can right now though, and I could see it being useful especially for a more complicated deploy with multiple Stages, and then you can have one thread per Freight with all the steps it entails while minimizing slack spam.Beta Was this translation helpful? Give feedback.
All reactions