debug: become root
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Aravinth Manivannan 2023-12-09 04:42:25 +05:30
parent 2c02ae4b95
commit 66f3979930
Signed by: realaravinth
GPG key ID: F8F50389936984FF

View file

@ -1,13 +1,17 @@
steps: steps:
backend: backend:
image: python image: python:3-bookworm
commands: commands:
- whoami
- apt-get update - apt-get update
- apt-get install -y ca-certificates curl gnupg tar wget libssl-dev python3-pip cython3 pipx - apt upgrade -y
- apt-get install -y ca-certificates curl gnupg tar wget libssl-dev python3-pip cython3 pipx ufw iptables
- update-alternatives --set iptables /usr/sbin/iptables-legacy
- ufw status
- pipx install --include-deps ansible - pipx install --include-deps ansible
- pipx ensurepath && echo $SHELL - pipx ensurepath && echo $SHELL
- /root/.local/bin/ansible-galaxy install -r ./ansible/requirements.yml - /root/.local/bin/ansible-galaxy install -r ./ansible/requirements.yml
- /root/.local/bin/ansible-playbook --connection=local -i localhost, --limit 127.0.0.1 ./ansible/mcaptcha.yml - /root/.local/bin/ansible-playbook --become --connection=local -i localhost, --limit 127.0.0.1 ./ansible/mcaptcha.yml
- pipx install --include-deps pytest-testinfra - pipx install --include-deps pytest-testinfra
- cd tests/cache/ && py.test --verbose base.py - cd tests/cache/ && py.test --verbose base.py
- cd tests/mcaptcha/ && py.test --verbose base.py - cd tests/mcaptcha/ && py.test --verbose base.py