ci: add woodpecker pipeline (lint, dryrun, manual preflight/patch)

This commit is contained in:
Automation Admin 2025-08-08 00:01:20 +00:00
parent fbbf4e2089
commit 65b4fa9717
1 changed files with 33 additions and 0 deletions

33
.woodpecker.yml Normal file
View File

@ -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