Skip to content

maquinas07/gitlab-ci-config-merger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Some of the code and the general inspiration to make this project comes from: https://github.com/firecow/gitlab-ci-local

That code is licensed under the MIT license, copyright notice is available in the above repository.

The rest of the project is also licensed under the MIT license, available in the LICENSE file in this repository.

Description

Parses one or many gitlab CI files expanding local includes and generating a merged configuration file in the selected output file (.gitlab-ci-merged.yml by default). Outputs to stdout if a - is passed as the output file.

Usage

To generate a merged file from a .gitlab-ci.yml:

glcm

To merge 2 files and output to stdout:

glcm -o - -- .gitlab-ci.yml .gitlab-ci-2.yml

Compilation

With yarn under linux:

yarn && yarn run build && yarn pkg-linux

It might work in other operating systems, though there's no build configuration and I haven't tested it.

About

Parses GitLab CI files and generates a merged yaml file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published