What problem does it solve?
This skill solves the challenge of integrating custom logic into the Kamal deployment lifecycle, allowing you to gate deploys, notify teams, or perform infrastructure-specific tasks at precise moments.
Core Features & Use Cases
- Deployment Gating: Automatically abort deployments if pre-flight checks like CI status or uncommitted code changes fail.
- Lifecycle Automation: Trigger custom scripts at specific points such as pre-build, post-deploy, or during proxy reboots to handle load balancer draining or APM registration.
- Context-Aware Scripts: Utilize built-in environment variables to make your hooks aware of the specific version, host, and user involved in the deployment.
Quick Start
Ask the agent to create a new pre-deploy hook script in the .kamal/hooks directory that checks if the current git branch is main before allowing the deployment to proceed.