Hello,
When building docker containers, my first thought is that the easy solution would be to use plugins/docker
.
However, I’m a bit lost with its behaviour. It seems it builds / pushes all in one step, while I’d like something like:
- create
myregistry/myapp
image fromDockerfile
- create
myapp-tests
fromDockerfile-tests
(which wouldFROM myregistry/myapp
and add my test tools) / run tests in this image. - run my tests (in some container created from
myapp-tests
image) - can run in several parallel steps. - if my tests are ok, tag & push
myregistry/myapp
.
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 ?
Thanks.