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.4.tar.gz
(32.8 kB
view hashes)
Built Distribution
Close
Hashes for mf_gitvars-1.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ed595d5dd3e1d7e19578321de9063054a1d5d3c42810b0c89af74ea45aca26b |
|
MD5 | 922527e4084142bd1c89878c363b5531 |
|
BLAKE2b-256 | bf4a39e722d2291138a533d6e87f509c1056a1b0e56827e8618a7f87483559ce |