ci: add woodpecker pipeline (lint, dryrun, manual preflight/patch)
This commit is contained in:
parent
fbbf4e2089
commit
65b4fa9717
|
|
@ -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
|
||||
Loading…
Reference in New Issue