Drone CI Plugins
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage


Build Status Docker Hub Quay.io GitHub contributors Source: GitHub License: MIT

Custom linter and formatter for the Drone YAML configuration file format.


Build the binary with the following command:

export GOOS=linux
export GOARCH=amd64
export CGO_ENABLED=0
export GO111MODULE=on

make build

Build the Docker image with the following command:

docker build --file docker/Dockerfile.amd64 --tag thegeeklab/drone-yaml .


Be aware that the tool only supports configuration files for the Drone Docker runner!

Lint the YAML file:

drone-yaml lint samples/simple.yml

Format the YAML file:

# default is printing to stdout
drone-yaml fmt samples/simple.yml

# optionally update the formatted file in place
drone-yaml fmt samples/simple.yml --save