Loading .gitlab-ci.yml +4 −3 Original line number Diff line number Diff line Loading @@ -41,6 +41,7 @@ ansible-lint: <<: *common stage: ansible-lint image: registry.cyberbrain.pw/ansible/ansible script: - sh setup.sh - cd ./kubespray; find . -maxdepth 1 -mindepth 1 -name \*.yml -a -not -name .gitlab-ci.yml -type f -print0 | xargs -0 ansible-lint -v -x '204' -x '301' -x '305' -x '401' script: |- sh setup.sh cd ./kubernetes grep -Rl '^- hosts: \|^ hosts: ' --include \*.yml --include \*.yaml . | xargs -P 4 -n 25 ansible-lint -v -x '204' -x '301' -x '305' -x '401' setup.sh +3 −0 Original line number Diff line number Diff line #!/usr/bin/env sh git submodule add --name kubespray --depth 1 -- "${KUBESPRAY_REPO:-https://github.com/southbridgeio/kubespray.git}" cat .gitmodules python3 -m venv --upgrade --system-site-packages .venv-kubespray .venv-kubespray/bin/pip3 install --upgrade pip setuptools wheel .venv-kubespray/bin/pip3 install -r kubespray/requirements.txt .venv-kubespray/bin/ansible --version Loading
.gitlab-ci.yml +4 −3 Original line number Diff line number Diff line Loading @@ -41,6 +41,7 @@ ansible-lint: <<: *common stage: ansible-lint image: registry.cyberbrain.pw/ansible/ansible script: - sh setup.sh - cd ./kubespray; find . -maxdepth 1 -mindepth 1 -name \*.yml -a -not -name .gitlab-ci.yml -type f -print0 | xargs -0 ansible-lint -v -x '204' -x '301' -x '305' -x '401' script: |- sh setup.sh cd ./kubernetes grep -Rl '^- hosts: \|^ hosts: ' --include \*.yml --include \*.yaml . | xargs -P 4 -n 25 ansible-lint -v -x '204' -x '301' -x '305' -x '401'
setup.sh +3 −0 Original line number Diff line number Diff line #!/usr/bin/env sh git submodule add --name kubespray --depth 1 -- "${KUBESPRAY_REPO:-https://github.com/southbridgeio/kubespray.git}" cat .gitmodules python3 -m venv --upgrade --system-site-packages .venv-kubespray .venv-kubespray/bin/pip3 install --upgrade pip setuptools wheel .venv-kubespray/bin/pip3 install -r kubespray/requirements.txt .venv-kubespray/bin/ansible --version