Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
Plugin's icon
113

rothandrew/pre-commit rothandrew/pre-commit

Runs "pre-commit run -a" to validate that all pre-commit git hooks are passing. https://pre-commit.com/. Uses Dad's Garage as the runtime container. https://github.com/dadsgarage/dadsgarage. Submit issues in either the step repo or the Dad's Garage repo if you have problems.

arguments

  • working_directory - The directory in which the pre-commit command is executed. It can be an explicit path in the container’s file system, or a variable that references another step. The default is /codefresh/volume/${{CF_REPO_NAME}}
    pre_commit:
  type: rothandrew/pre-commit
  title: Validating pre-commit hooks
  stage: Validate
  arguments:
    working_directory: '/codefresh/volume/${{CF_REPO_NAME}}'

  
github.com
Andrew Roth
Nov 4, 2020