Environmental Variables

Environmental Variables

Similar to Project Variables, the Build Variables section enables managing environment variables which are to be passed to the repository builds. Environment variables are defined on a name-value basis (key-value), meaning that the defined variables are to be accessible by name from inside the Jobs.

Access the Build configuration settings by pressing the repository settings button (gears icon), located next to the repository name. Build settings

Example listing environment variable MY_DATA=0x44332201, to be accessible as $MY_DATA from inside the configuration file:

Build settings: Variables

Environment variables can be Duplicated to form new entries, Edited to change either of the fields, or Removed by accessing the corresponding action from the variables list settings button (three dots icon).

The following environment variables are reserved and automatically set when running Jobs:

  • GITHUB_TOKEN:
    aabbff33445566ppooee4411aazzxx11eeeeee00
  • GITHUB_FULL_REPO_NAME:
    SuperblocksHQ/superblocks-lab
  • GITHUB_REPO:
    superblocks-lab
  • GITHUB_COMMIT:
    a0000b1111c2222d333e44f555f6g777h8jk99l0