I do believe this type of approach will become easier as CI/CD becomes the norm, but that's gonna be awhile yet.
IMHO to date you will often get more value for time invested out of alternate strategies like thinning down a kernel and userspace, running a server diskless with frequent reboots, adding a second server for failover, using a grsec kernel, or running a decently maintained and tuned IDS/firewall combo.