Simulate a pipeline Error: Request failed with status code 500

Hello,
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

stages:

  • Build image

docker build:
stage: Build image
script:
- 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 "https://gitlab.domain.com/project_name/-/ci/lint" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.54 Safari/537.36