Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rosineygp/mkdkr_exporter
export mkdkr to another pipeline engine
https://github.com/rosineygp/mkdkr_exporter
Last synced: about 1 month ago
JSON representation
export mkdkr to another pipeline engine
- Host: GitHub
- URL: https://github.com/rosineygp/mkdkr_exporter
- Owner: rosineygp
- License: apache-2.0
- Created: 2020-02-16T23:39:52.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-03-01T12:58:27.000Z (7 months ago)
- Last Synced: 2024-06-11T00:11:21.800Z (3 months ago)
- Language: Jinja
- Size: 28.3 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# exporter
[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Frosineygp%2Fmkdkr_commitlint%2Fbadge%3Fref%3Dmaster&style=flat)](https://actions-badge.atrox.dev/rosineygp/mkdkr_exporter/goto?ref=master)
[![Docker Pulls](https://img.shields.io/docker/pulls/rosiney/mkdkr_exporter)](https://hub.docker.com/r/rosiney/mkdkr_exporter)
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/rosineygp/mkdkr_exporter)](https://github.com/rosineygp/mkdkr_exporter/releases)Export Makefile to following pipeline engines:
- circle-ci
- github actions
- gitlab-ci
- jenkins (dsl pipeline)
- travis
- bitbucket-pipelines ¹
- local - shellscript> ¹ privileged containers not working at bitbucket cloud
All Makefile user targets is added, including implicit jobs (like [commitlint](https://github.com/rosineygp/mkdkr_commitlint)).
Additional environment variables, flows and error handling needs to be implemented by user.
> This project pipeline is made using [mkdkr_exporter](https://github.com/rosineygp/mkdkr_exporter).
# usage
## include
Add the following line at mkdkr.csv
```csv
exporter,https://github.com/rosineygp/mkdkr_exporter.git
```
## executeNo needs aditional step in your Makefile (implicit)
```bash
# export to gitlab
make _exporter_gitlab-ci# export to github actions
make _exporter_github# export to travis
make _exporter_travis# export to circle ci
make _exporter_circle-ci# export to jenkins (pipeline syntax)
make _exporter_jenkins_pipeline# export to bitbucket pipelines
make _exporter_bitbucket-pipelines# export to local - shellscript
make _exporter_shell
```## how it works
The script will read `Makefile` and execute `make -qp`. It will return all explicit and implicit make targets.
For better result add and prefix in your Makefile target name like this.
```Makefile
lint.python:
...test.unit:
...test.dast:
...deploy.heroku:
...
```or using slash as separator.
```Makefile
lint/python:
...test/unit:
...test/dast:
...deploy/heroku:
...
```
The prefix will be used as job **stage** and run in parallel at **gitlab-ci** and **travis**.If not added prefix, the stage name will be the same as target name.
## exclude targets
To exclude a target in exporter generator the first letter of target name needs to be different of following regex **[a-zA-Z]**.
> \* suggest start with **_** underscore.