# GitLab CI/CD

### How to integrate Meterian with GitLab CI/CD

This step by step guide will help you integrate Meterian in your GitLab CI/CD pipelines.

**Set the METERIAN\_API\_TOKEN environment variable**

* From the menu select Setting > CI / CD
* “Expand” the Variables section
* Add new variable
* Check the “Mask variable” option

{% hint style="info" %}
To retrieve a Meterian API Token visit the [Meterian Dashboard](https://www.meterian.com/account); in your account select the tab "Tokens" and create a new one, or use an existing one.

API tokens are available only on paid account. To upgrade your subscription, please [contact us](mailto:support@meterian.io).
{% endhint %}

**Add Meterian to your pipeline**

There are a few ways you can configure a pipeline to integrate Meterian. Based on your needs and/or preferences you can choose one of the following:

* [Docker-in-Docker configuration](https://docs.meterian.io/ci-server-integrations/gitlabcicd/sample-java-project)
* [Meterian Docker image configuration](https://docs.meterian.io/ci-server-integrations/gitlabcicd/sample-scala-project)
* [Non-Meterian Docker image configuration](https://docs.meterian.io/ci-server-integrations/gitlabcicd/sample-unity-project)
