You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

917 B


A pre-commit plugin, for the project, which allows you to run pre-commit checks as part of your build steps.


An example configuration would be as follows:

  - name: run checks
    image: iamthefij/drone-pre-commit:latest

Or, if you have additional dependencies to install

  - name: run ruby dependent checks
    image: iamthefij/drone-pre-commit:latest
      - apt-get update
      - apt-get install -y --no-install-recommends ruby
      # You must run your own pre-commit command at the end
      - pre-commit run --all-files

Personal image

A second image is also built for my personal use, but it may be useful to you as well. This image includes the following dependencies:

  • hadolint
  • golang
  • golangci-lint

Installation scripts referencing versions are found in ./scripts.