-
-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
please delete #2047
Comments
That's a great idea, i don't know drone CI but maybe we can work together to complete the doc and add a section:) ML is docker image based and there is also mega-linter-runner so i'm sure that we can build a reusable template configuration:) |
When you look to github, gitlab, azure etc... job scripts, isn't there something reusabke for drone CI? :) |
The local runner is really only an abstraction to use the Docker image. By using it with the The two important lines of the local runner are really: megalinter/mega-linter-runner/lib/runner.js Lines 130 to 131 in 8376adf
This sets the volume mounts. The first one is to allow MegaLinter to control Docker. (Probably for the Docker based linters). Then the second one is really to mount the repo to lint inside the container, so the container can access the files. That's how à Docker container can communicate files, and persist them, since otherwise, containers are generic and stateless! The CI actions or jobs, call directly the Docker container like in here, the GitHub action definition, the I'm not 100% sure how the repo files mounting is set in that case, but I think this could help you start your integration project! |
Syntax seems quite simple and close to other CI providers https://docs.drone.io/pipeline/docker/syntax/steps/ Could you try something like: kind: pipeline
type: docker
name: MegaLinter
steps:
- name: megalinter
image: oxsecurity/megalinter:v6 |
@NebulaOnion great :)
|
Agreed, you can make a first PR with doc for what already works, then the new features about drone CI integration can be managed in other issues & PRs :) |
Another thing: if there is something in drone CI to group console output into sections, it would be nice to implement it too :) |
Nice proposition, agreed :) |
@NebulaOnion oops... please can you make a PR to update doc once you have a config working ? |
This issue has been automatically marked as stale because it has not had recent activity. If you think this issue should stay open, please remove the |
@NebulaOnion a PR with updated doc + updated installer to have a Drone CI config template would indeed be great :) About generator, it will probably be something like:
|
This issue has been automatically marked as stale because it has not had recent activity. If you think this issue should stay open, please remove the |
@NebulaOnion but are you still working or going to work on a PR? Because right now the only one apparently interested and knowledgeable in this topic is you so if you don't advance somehow in a PR I'm afraid it will fall back into stale. |
@NebulaOnion what CI did you decide to use? |
@NebulaOnion oh great, another CI tool that could use MegaLinter :) Please make a PR to update the installation instructions if you succeed to run MegaLinter on Gitea :) |
No description provided.
The text was updated successfully, but these errors were encountered: