A deployment hook is a lifecycle-triggered action executed before or after a software deployment. It can validate the environment, notify teams, audit a release, run post-deployment tests, or notify customers. section 9.3
Keptn Lifecycle Toolkit implements hooks through reusable task definitions:
- Define behavior with a KeptnTaskDefinition using Deno, Python 3, or a container image. section 9.3
- Bind a task to a workload with a deployment annotation such as keptn.sh/post-deployment-tasks. section 9.3
- Let Keptn create a Kubernetes Job, then inspect task executions through Job records. section 9.3
Post-deployment task
A Deno task reads deployment context and prints the workload name, application version, and task type after the notifications service changes. The resulting execution reports taskType as post.
