< GitLab < Workflows

Getting started with gitlab-ci

Here you will find some tips for getting started using gitlab-ci to test commits on your project hosted at gitlab.wikimedia.org.

This is a supplement to the upstream documentation and the aim of this page is to cover differences and limitations specific to Wikimedia's GitLab CI environment.

Configuring your test pipelines: .gitlab-ci.yaml

You can configure the commands to run for your CI pipeline by creating .gitlab-ci.yaml at the root of your project repository. You can also create this file by using the web interface at https://gitlab.wikimedia.org/yourgroup/yourproject/-/ci/editor

When using the web interface to create your CI configuration, you should be aware that the built-in templates that GitLab provides as examples for .gitlab-ci.yaml are not customized for the Wikimedia CI environment and will not work without some modifications. One of the things that you will have to change is the docker images used to run your jobs. The built-in templates point to images hosted on docker hub which will not be accessible by the Wikimedia CI runners. Instead you need to use images published on https://docker-registry.wikimedia.org/.

Upstream / External Documentation & Resources

This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.