3 ways to add .gitlab-ci.yml to your project

  1. Clone the repo, add the file and push to the origin
  2. Go to GitLab interface and click a + near the repo name. There is a new file option. Here you can apply a plenty of templates.
  3. Go to CI/CD -> Editor and click Configure pipeline. A new pipeline will be automatically generated