[go: up one dir, main page]

0% found this document useful (0 votes)
156 views10 pages

GitLab CI-CD

Uploaded by

wearemello19
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
156 views10 pages

GitLab CI-CD

Uploaded by

wearemello19
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

GitLab CI/CD variables

GitLab CI/CD variables are key-value pairs used to


customize the CI/CD pipeline execution. They can be set
at the project, group, or instance level and are accessible
during pipeline runs. These variables help manage
sensitive information like API keys, configuration
settings, or dynamic data
Step 1: Create a project

Step 2: Select CI/CD from left panel of navigation


Step 3: Clink on variable.

Step 4: Click on Add Variable.


➢ Define the Visibility type. For now we select
visible.
Step 5: Define the KEY and VALUE
➢ Click on add Variable

Step 6: Check that new variable is add.


Step 7: Edit the .gitlab-ci.yml file.

Step 8: Run the pipeline


Step 9: Pipeline is susses fully created
➢ Check that KEY $name define the VALUE swapnil
as we define in list.

Step 10: Add variable for visibility as Masked.


Step 11: Define KEY and VALUE.

Step 12: Check that variable is created.


Step 13: Edit the file, add $password key

Step 14: Run the pipeline.


Step 15: Check the result after a complete job.

Step 16: Some predefine variable in GitLab


➢ From the official docs check the variable list.
Step 17: Some the predefine variable.

Step 18: Check the value of predefine variable.

You might also like