2021-02-17 10:47:19 -08:00
2020-09-08 13:20:54 -07:00
2020-09-08 10:14:06 -07:00
2021-02-05 12:25:13 -08:00
2021-02-02 15:42:48 -08:00
2020-09-08 10:02:15 -07:00

drone-pre-commit

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

Examples

An example configuration would be as follows:

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

Or, if you have additional dependencies to install

steps:
  - name: run ruby dependent checks
    image: iamthefij/drone-pre-commit:latest
    commands:
      - 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.

Description
Drone plugin to run pre-commit hooks
Readme 56 KiB
Languages
Shell 57.9%
Makefile 33.4%
Dockerfile 8.7%