I was thinking of splitting a pipeline into two steps:
- build the docker image and run the tests,
- push the image to registry and "deploy".
This separation seems logical but the image built in the first step is not available in the second one.
Any suggestions, best practices?