One of the things I did with the 1.0 workflow was build and subsequently test a production container (hitting some endpoints with curl for basic responses) before we pushed it live. With the 2.0 update, it looked like I might be able to achieve this across 2 jobs (build and test) using the image created using the remote docker daemon; however, according to the documentation, only images in public repositories can be used unless you run through the steps to pull from a private registry. Even if I wanted to pull from a private registry, this would require me to push and then pull all just to have the fresh image available in the next job of the same workflow. I was really hoping to be able to use what I had built in the first job as the image for another job in the workflow, primarily because I could supply things like environment variables and test commands to it in a very clean fashion compared to doing it all as a long series of more arduous (and messy) commands from the docker client container.
Is there any way for me to pick up and use an image built by CircleCI as the container for another job in the same workflow? Or will I have to do all of the build/test/push in a single job using a container that is capable of all of them, due to access to built images not persisting across jobs?
Thanks in advance, and nice work on 2.0