Drone CI
Warning: Drone CI support is experimental and is undergoing heavy modifications (see issue #2047).
-
Create a
.drone.yml
file on the root directory of your repository -
Copy and paste the following template:
kind: pipeline
type: docker
name: MegaLinter
workspace:
path: /tmp/lint
steps:
- name: megalinter
image: oxsecurity/megalinter:v7
environment:
DEFAULT_WORKSPACE: /tmp/lint
This uses the Drone CI docker runner, so it's needed to install and configure it beforehand on your Drone CI server.
(Optional) Adjusting trigger rules
The Drone CI workflow should trigger automatically for every scenario (push, pull request, sync…) however, you can optionally change this behavior by changing the trigger. For example:
kind: pipeline
type: docker
name: MegaLinter
workspace:
path: /tmp/lint
steps:
- name: megalinter
image: oxsecurity/megalinter:v7
environment:
DEFAULT_WORKSPACE: /tmp/lint
trigger:
event:
- push
The workflow above should only trigger on push, not on any other situation. For more information about how to configure Drone CI trigger rules, click here.