Within the yml file of the gitlab-ci pipeline there are image and services. How are they related? Can I build a docker image that can provide more for a gitlab stage via services? Does anyone of you have a dockerfile which can be integrated as an image and as services?
build_stage:
image: my_docker_image
services:
- service_from_docker_image
"The services keyword defines just another Docker image that is run during your job and is linked to the Docker image that the image keyword defines. This allows you to access the service image during build time."
The explanation on the gitlab page doesn't make that very clear to me yet.