avatar

ShinChven's Blog

Gitlab Runner Environment Variables

GitLab Runner2022-01-13 23:04:32

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

[[runners]]
  environment = [
    "<ENV_NAME>=<ENV_VALUE>",
  ]