I have a Gitlab CI/CD pipeline which:
- builds Spring Boot app
- packages it to a Docker image
- deploy the image using
docker run ...
I'd like to be able to validate the service after deployment. I want to be informed by the pipeline about the failure. I guess I need an additional healthcheck step in the pipeline to validate the service.
Is there any best practices for this task? Is there any ready to use solutions?