In GitLab Runner CI/CD jobs we may need to use some environment variables, there are a few pre-defiled variables like ${CI_JOB_TOKEN} we can use directly in our pipeline, and we can also define our own environment variables in runner’s config file.

1
2
3
4
[[runners]]
environment = [
"<ENV_NAME>=<ENV_VALUE>",
]