Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
19851bb0
Unverified
Commit
19851bb0
authored
1 year ago
by
Max Gautier
Browse files
Options
Downloads
Patches
Plain Diff
collection-build-install convert to pre-commit
parent
7f7b65d3
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.pre-commit-config.yaml
+8
-0
8 additions, 0 deletions
.pre-commit-config.yaml
tests/scripts/collection-build-install.sh
+7
-0
7 additions, 0 deletions
tests/scripts/collection-build-install.sh
with
15 additions
and
0 deletions
.pre-commit-config.yaml
+
8
−
0
View file @
19851bb0
...
...
@@ -76,6 +76,14 @@ repos:
language
:
script
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
name
:
generate-docs-sidebar
entry
:
scripts/gen_docs_sidebar.sh
...
...
This diff is collapsed.
Click to expand it.
tests/scripts/collection-build-install.sh
0 → 100755
+
7
−
0
View file @
19851bb0
#!/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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment