# How to Upload Environment Variables to GitLab CI/CD

To implement CI/CD Gitlab 🦊provides an easy to use interface that you can set and help your project develop faster. Here I share the process I use to add CI/CD variables to a project in Gitlab.

In Gitlab goto left side bar, Settings, CI/CD

Go to variables section, click add variable

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1765992285316/b6b33ee5-96e0-4a54-b5ce-e1bf9a5d408c.png align="center")

From right side bar select select `visible` and deselect `protect variable`

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1765992355860/6a509bc0-3ece-4ec1-8ada-3b9f022d0850.png align="center")

In Key write the name of the file that will store all the variables

In value enter the key and values of your variables (values are written without ")

---

Make sure that your yml script adds the env vars file

`.gitlab-ci.yml`

```bash
test:
  stage: test
  image: node:22
  before_script:
    - cat "$ENV_VARS" | tr -d '\r' > .env
```

Now you are ready to integrate the variables to your project and make it evolve. Keep coding dev-san 💻

## More Info

[Gitlab Documentation CI Variables](https://docs.gitlab.com/ci/variables/)
