Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gringolito/prv-pre-commit
Pull-Request Verifier - pre-commit
https://github.com/gringolito/prv-pre-commit
auto-qa azure-pipelines ci ci-cd ci-cd-pipeline cicd docker docker-image github-actions pre-commit
Last synced: about 2 months ago
JSON representation
Pull-Request Verifier - pre-commit
- Host: GitHub
- URL: https://github.com/gringolito/prv-pre-commit
- Owner: gringolito
- License: other
- Created: 2020-07-16T21:00:07.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-12-22T20:46:05.000Z (about 4 years ago)
- Last Synced: 2024-03-19T22:47:41.911Z (10 months ago)
- Topics: auto-qa, azure-pipelines, ci, ci-cd, ci-cd-pipeline, cicd, docker, docker-image, github-actions, pre-commit
- Language: Dockerfile
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pull-Request Verifier - pre-commit
This Docker image allows the use of [pre-commit](https://pre-commit.com/) tool to verify Pull-Requests in integration
pipelines like `GitHub Actions` or `Azure Pipelines`.## How to build the images
### Python
```shell
$ docker build -t prv-pre-commit/python-3.7 -f python-3.7/Dockerfile .
```### C++
```shell
$ docker build -t prv-pre-commit/cpp-clang10 -f cpp-clang10/Dockerfile .
```## Usage
This Pull-Request Verifier will run the `pre-commit` in all files inside the `/app` directory
on the container, so make sure to map your repository to the `/app`.e.g. for Python 3.7 project
```shell
$ docker run --rm -v /path/to/application/repository:/app prv-pre-commit/python-3.7
```If you are running it inside the repository root you can just use:
e.g. for Python 3.7 project
```shell
$ docker run --rm -v ${PWD}:/app prv-pre-commit/python-3.7
```