avatar

ShīnChvën ✨

Effective Accelerationism

Powered by Druid

Gitlab Runner Environment Variables

Thu Jan 13 2022

In GitLab Runner CI/CD jobs we may need to use some environment variables, there are a few pre-defined 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>",
  ]