When building docker containers, my first thought is that the easy solution would be to use
However, I’m a bit lost with its behaviour. It seems it builds / pushes all in one step, while I’d like something like:
FROM myregistry/myappand add my test tools) / run tests in this image.
- run my tests (in some container created from
myapp-testsimage) - can run in several parallel steps.
- if my tests are ok, tag & push
As I couldn’t figure how to implement this with
plugins/docker, I’m running this workflow on the host’s docker, with a socket mount in my runner. But I’m not satisfied with this solution.
Can you share how you do, if I’m wrong with my reasoning, if I missed something ?