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
Field | Value |
---|---|
RepositoryUrl | The Url to clone the repository |
FilePath | The Path to the file within the repository. The file must be compatible with the Local VariableProvider |
Arguments | An 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"]
}
]
}
}