How to Securely Store and Use Variables in GitLab Pipelines

1 min read

GitLab is one of the most widely used version control and CI/CD platforms globally. When working with pipelines, we often need to use sensitive information such as passwords or SSH keys. To keep these secrets secure and out of source code, GitLab allows us to store them as environment variables, which can then be safely referenced within our pipeline scripts.
Objectives
- Set up variables in GitLab
Requirements
- A gitlab account
To create a gitlab account
- Login to you gitlab account
Click on settings
Click on CI/CD
- Click on variables
- Click on Add
Type in the key (Name) and the value
Click on Add variable
0
Subscribe to my newsletter
Read articles from Oshaba Samson directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Oshaba Samson
Oshaba Samson
I am a software developer with 5 years + experience. I have working on web apps ecommerce, e-learning, hrm web applications and many others