I am trying to run a simple python project on Gitlab. I setup a runner on an EC2 instance and I am trying to use it for the project. This is the .gitlab-ci.yml file:
tags:
- gr
- grun
- runner
stages:
- build
build:
image: python:3.7
script:
- echo "building"
- pip install -r requirements.txt
- python test.py
I get this error-
This GitLab CI configuration is invalid: root config contains unknown keys: tags
I get the same error when I use jobs and environment in the .gitlab-ci.yml file. The runner is active. How to fix this issue?