Simulate a pipeline Error: Request failed with status code 500

I’am trying to create my first pipeline so i followed to recommendation to validate my …gitlab-ci.yml file and then simulate the pipeline but i’am getting an Error 500 code.
so here’s my .gitlab-ci.yml file:

image: docker:stable


  • Build image

docker build:
stage: Build image
- docker info
- docker build -t dockerregistry:1.0 .

if you need more information please tell me.

Got some logs:

"POST /project_name/-/ci/lint HTTP/2.0" 500 2950 "" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36