In #1107, we added some library functions to make it easier to build container images. Notably see build_and_push_image which is a one-call solution to do the whole thing.
We should port over all the jobs that currently build container images to use this.