From 65b4fa97171039971bae18bedbc926aead7eba47 Mon Sep 17 00:00:00 2001 From: Automation Admin Date: Fri, 8 Aug 2025 00:01:20 +0000 Subject: [PATCH] ci: add woodpecker pipeline (lint, dryrun, manual preflight/patch) --- .woodpecker.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .woodpecker.yml diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..b33d751 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,33 @@ +branches: + include: + - main + +steps: + lint: + image: python:3.11-slim + commands: + - pip install --no-cache-dir ansible ansible-lint + - ansible-lint -v + + dryrun: + image: python:3.11-slim + commands: + - pip install --no-cache-dir ansible + - ansible-playbook playbook/playbook.yml --check --list-tasks + + run_preflight: + when: + event: [manual] + image: python:3.11-slim + commands: + - pip install --no-cache-dir ansible + - ansible-playbook playbook/playbook.yml --tags preflight -l pdp-portal --ask-vault-pass + + run_patch: + when: + event: [manual] + image: python:3.11-slim + commands: + - pip install --no-cache-dir ansible + - ansible-galaxy collection install -r playbook/requirements.yml --force + - ansible-playbook playbook/playbook.yml -l pdp-portal -e "target_clm_version=prod-2024-06" --ask-vault-pass