Skip to content

diduk001/gitlab-extract-variable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gitlab-extract-variable

A tool to extract GitLab CI/CD variables written in Golang and save it in csv file

Installing

go install github.com/diduk001/gitlab-extract-variable@latest

Usage examples

gitlab-extract-variable -token=TOKEN -project=ProjectOwner/ProjectName -compact

gitlab-extract-variable -token=TOKEN -project=ProjectOwner/ProjectName -output=.env -format=env

Options

  • -token= - required, your personal GitLab access token
  • -project= - required, the format is {project owner}/{project name}
  • -output= - output file, by default output.txt
  • -compact - extract only key and value
  • -format= - format, csv or env only

TODO

  • Add several output formats
  • Add colors to output

About

Go tool to extract GitLab CI/CD variables (https://docs.gitlab.com/ee/ci/variables/)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages