cmmorrow / build-magic

A general purpose build/install/deploy tool.
MIT License
9 stars 2 forks source link

Add build-magic config file exporter for GitHub and GitLab #74

Closed cmmorrow closed 2 years ago

cmmorrow commented 2 years ago

Is your feature request related to a problem? Please describe. Running commands from a build-magic config file is useful, but doesn't integrate so well with CI/CD workflows/pipelines.

Describe the solution you'd like Add an --export option that can convert a build-magic config file to aGitHub workflow file or GitLab CI file. Both formats support running arbitrary shell commands, so build-magic commands can map to commands in both formats easily. Build-magic stages can map to GitHub workflow steps and to GitLab CI stages or jobs. Command runners and environments cannot map deterministically so they should be ignored and the commands in the stages should be assumed to match the CI runner.