stackabletech / docker-images

Apache License 2.0
17 stars 3 forks source link

ci: Introduce pre-commit hooks #765

Closed NickLarsenNZ closed 3 months ago

NickLarsenNZ commented 3 months ago

Description

Add pre-commit hooks to automate some tasks (linting and badge generation).

[!NOTE] The pre-commit workflow is disabled until the workflow is registered in Github Actions. Also, there is some duplication between reviewdog checks and pre-commit hooks.

Definition of Done Checklist

- [ ] Changes are OpenShift compatible
- [ ] All added packages (via microdnf or otherwise) have a comment on why they are added
- [ ] Things not downloaded from Red Hat repositories should be mirrored in the Stackable repository and downloaded from there
- [ ] All packages should have (if available) signatures/hashes verified
- [ ] Add an entry to the CHANGELOG.md file
- [ ] Integration tests ran successfully
TIP: Running integration tests with a new product image The image can be built and uploaded to the kind cluster with the following commands: ```shell bake --product --image-version kind load docker-image --name= ``` See the output of `bake` to retrieve the image tag for ``.