Git

Use this provider to access variables in a json file located in a separate repository. This might be useful to share variables across multiple repositories without having to setup additional infrastructure like a Vault.

Configuration

FieldValue
RepositoryUrlThe Url to clone the repository
FilePathThe Path to the file within the repository. The file must be compatible with the Local VariableProvider
ArgumentsAn optional array of arguments passed to git clone.These can be used to define the branch for example

Sample

.confixrc
{
  "project": {
    "variableProviders": [
      {
        "name": "git",
        "type": "git",
        "repositoryUrl": "https://github.com/SwissLife-OSS/Confix-Variables.git",
        "filePath": "./variables.json",
        "arguments": ["--branch=main", "--depth=1"]
      }
    ]
  }
}