Browse Source
collection-build-install convert to pre-commit
pull/11244/head
Max Gautier
5 months ago
Failed to extract signature
2 changed files with
15 additions and
0 deletions
-
.pre-commit-config.yaml
-
tests/scripts/collection-build-install.sh
|
@ -76,6 +76,14 @@ repos: |
|
|
language: script |
|
|
language: script |
|
|
pass_filenames: false |
|
|
pass_filenames: false |
|
|
|
|
|
|
|
|
|
|
|
- id: collection-build-install |
|
|
|
|
|
name: Build and install kubernetes-sigs.kubespray Ansible collection |
|
|
|
|
|
language: python |
|
|
|
|
|
additional_dependencies: |
|
|
|
|
|
- ansible-core>=2.16.4 |
|
|
|
|
|
entry: tests/scripts/collection-build-install.sh |
|
|
|
|
|
pass_filenames: false |
|
|
|
|
|
|
|
|
- id: generate-docs-sidebar |
|
|
- id: generate-docs-sidebar |
|
|
name: generate-docs-sidebar |
|
|
name: generate-docs-sidebar |
|
|
entry: scripts/gen_docs_sidebar.sh |
|
|
entry: scripts/gen_docs_sidebar.sh |
|
|
|
@ -0,0 +1,7 @@ |
|
|
|
|
|
#!/bin/sh -e |
|
|
|
|
|
export ANSIBLE_COLLECTIONS_PATH="./ansible_collections" |
|
|
|
|
|
ansible-galaxy collection build --force |
|
|
|
|
|
ansible-galaxy collection install kubernetes_sigs-kubespray-$(grep "^version:" galaxy.yml | awk '{print $2}').tar.gz |
|
|
|
|
|
ansible-galaxy collection list $(egrep -i '(name:\s+|namespace:\s+)' galaxy.yml | awk '{print $2}' | tr '\n' '.' | sed 's|\.$||g') | grep "^kubernetes_sigs.kubespray" |
|
|
|
|
|
test -f ansible_collections/kubernetes_sigs/kubespray/playbooks/cluster.yml |
|
|
|
|
|
test -f ansible_collections/kubernetes_sigs/kubespray/playbooks/reset.yml |