File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,19 @@ Currently the following hooks are provided:
23
23
24
24
Installation of `pre-commit ` hooks is handled via the `install-pre-commit-hooks ` playbook
25
25
found within the Ansible directory.
26
- Either use ` kayobe playbook run ` or add the playbook as a hook within Kayobe config such as
26
+ Either run the playbook manually or add the playbook as a hook within Kayobe config such as
27
27
within `control-host-bootstrap/post.d `.
28
28
Once done you should find `pre-commit ` is available within the `kayobe ` virtualenv.
29
29
30
+ To run the playbook using the following command
31
+
32
+ - ``kayobe playbook run ${KAYOBE_CONFIG_PATH}/ansible/install-pre-commit-hooks.yml ``
33
+
34
+ Whereas to run the playbook when control host bootstrap runs ensure it registered as symlink using the following command
35
+
36
+ - ``mkdir -p ${KAYOBE_CONFIG_PATH}/hooks/control-host-bootstrap/post.d ``
37
+ - ``ln -s ${KAYOBE_CONFIG_PATH}/ansible/install-pre-commit-hooks.yml ${KAYOBE_CONFIG_PATH}/hooks/control-host-bootstrap/post.d/install-pre-commit-hooks.yml ``
38
+
30
39
All that remains is the installation of the hooks themselves which can be accomplished either by
31
40
running `pre-commit run ` or using `git commit ` when you have changes that need to be committed.
32
41
This will trigger a brief installation process of the hooks which may take a few minutes.
You can’t perform that action at this time.
0 commit comments