Have you checked out Dagger?
It's what the people who created OG Docker are building now
I have tried it but wasn't a fan. I tried to convert one of our Actions workflows and that proved to be a PITA that I gave up on. It seems now the project is pivoting into AI stuff.
Well, one of them.
Dagger is one of those things I want to like, but find incredibly painful to use in practice.