From 66f39799301284fba625d41ee8eb0f52be9c669a Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Sat, 9 Dec 2023 04:42:25 +0530 Subject: [PATCH] debug: become root --- .woodpecker.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 2ecc025..e227495 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,13 +1,17 @@ steps: backend: - image: python + image: python:3-bookworm commands: + - whoami - 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 ensurepath && echo $SHELL - /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 - cd tests/cache/ && py.test --verbose base.py - cd tests/mcaptcha/ && py.test --verbose base.py