A tool to parse CI/CD variables from Gitlab API
Project description
GitVars
Use the Gitlab API to extract CI/CD variables and output them in a format useable for running projects locally.
Setup
Create an API key on Gitlab here and grant it read_api, read_repository
permissions
Create a local configuration file
cat ~/.python-gitlab.cfg
[global]
default = momentfeed
ssl_verify = true
timeout = 5
api_version = 4
[momentfeed]
url = https://gitlab.com
private_token = token123
Usage
Find the gitlab project id on the project page here:
And then run with
$ mf-gitvars [project-id]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mf-gitvars-1.1.3.tar.gz
(32.8 kB
view hashes)
Built Distribution
Close
Hashes for mf_gitvars-1.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce7430dd4e87c263cfe39703de32364e488a980670c07fe9fb47891b3132518e |
|
MD5 | 2ae085c360529b7106e4307b3cd46afc |
|
BLAKE2b-256 | 7da5e8f90fb1f4987f228d8bb728af3286e72dcb4780aeeb5ea4158c55b6412d |