New to Kestra?
Use blueprints to kickstart your first workflows.
Gate image rollout on a size budget and alert Slack on bloat.
Image bloat is invisible until deploys slow to a crawl. This blueprint pulls the image, reads its size, and alerts Slack when it exceeds your budget. Trigger it from your build pipeline.
measure_size (io.kestra.plugin.scripts.shell.Commands on the docker CLI image) pulls the image and emits size in MB via the ::{"outputs": ...}:: protocol.over_budget (io.kestra.plugin.core.flow.If) branches: breach -> alert_oversize; pass -> log_ok.errors block alerts on pull/inspect failure.Webhook.docker inspect prints bytes; the flow makes it a gate with history and alerts. The next step (block the deploy, suggest a multi-stage fix, record a trend) is one task away.
SLACK_WEBHOOK_URL: webhook for breach and failure alerts.image and max_size_mb.image_size_mb.image-size webhook into your build pipeline.ForEach.