Codefresh Steps: Reusable Code for Common Operations
This page provides code you can use to perform common operations in the Codefresh CI/CD platform.
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
pre_commit:
type: rothandrew/pre-commit
title: Validating pre-commit hooks
stage: Validate
arguments:
working_directory: '/codefresh/volume/${{CF_REPO_NAME}}'