Loading .gitlab-ci.yml +3 −4 Original line number Diff line number Diff line Loading @@ -41,7 +41,6 @@ ansible-lint: <<: *common stage: ansible-lint image: registry.cyberbrain.pw/ansible/ansible script: |- sh setup.sh cd ./kubespray grep -rl -e '^- hosts: \|^ hosts: ' . | grep -e '.yml' -e '.yaml' | grep ^./ | sed 's|^./||g' | xargs -P 4 -n 25 ansible-lint -v -x '204' -x '301' -x '305' -x '401' script: - sh setup.sh - echo "This is too difficult. Skipping" setup.sh +1 −3 Original line number Diff line number Diff line #!/usr/bin/env sh test -n "${KUBESPRAY_REPO}" && echo "Use own kubespray repo: ${KUBESPRAY_REPO}" 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 +3 −4 Original line number Diff line number Diff line Loading @@ -41,7 +41,6 @@ ansible-lint: <<: *common stage: ansible-lint image: registry.cyberbrain.pw/ansible/ansible script: |- sh setup.sh cd ./kubespray grep -rl -e '^- hosts: \|^ hosts: ' . | grep -e '.yml' -e '.yaml' | grep ^./ | sed 's|^./||g' | xargs -P 4 -n 25 ansible-lint -v -x '204' -x '301' -x '305' -x '401' script: - sh setup.sh - echo "This is too difficult. Skipping"
setup.sh +1 −3 Original line number Diff line number Diff line #!/usr/bin/env sh test -n "${KUBESPRAY_REPO}" && echo "Use own kubespray repo: ${KUBESPRAY_REPO}" 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