Files
ansible-role-checkmk-agent/.woodpecker/test.yml

52 lines
1.4 KiB
YAML
Raw Normal View History

2024-01-09 14:33:55 +13:00
---
2024-01-30 11:36:13 +13:00
labels:
location: local
2024-01-09 14:33:55 +13:00
matrix:
include:
- MOLECULE_DISTRO: almalinux8
2024-01-09 14:41:37 +13:00
MOLECULE_SCENARIO: http_direct
2024-01-09 14:33:55 +13:00
- MOLECULE_DISTRO: almalinux9
2024-01-09 14:41:37 +13:00
MOLECULE_SCENARIO: http_direct
2024-01-09 14:33:55 +13:00
clone:
git:
image: woodpeckerci/plugin-git
settings:
recursive: true
submodule_update_remote: true
when:
event: [push, manual]
steps:
test:
name: Test on ${MOLECULE_DISTRO}
image: guisea/ansible-molecule
pull: true
environment:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
volumes: [/var/run/docker.sock:/var/run/docker.sock]
commands: ['molecule test --scenario-name ${MOLECULE_SCENARIO:-default}']
2024-01-09 15:14:46 +13:00
secrets:
- cmk_omd_host
- cmk_omd_protocol
- cmk_omd_site
- cmk_username
- cmk_secret
2024-01-09 14:33:55 +13:00
when:
event: [push, manual]
ntfy:
image: codeberg.org/l-x/woodpecker-ntfy
settings:
url: https://ntfy.cybercinch.nz/ci-status
title: 'Test failed for ${CI_REPO_NAME} - Distro: ${MOLECULE_DISTRO} Scenario:
${MOLECULE_SCENARIO:-default}'
priority: urgent
icon: https://woodpecker-ci.org/img/logo.svg
tags: robot,warning,rotating_light,${CI_BUILD_EVENT},${CI_REPO_NAME}
message: >
📝 Commit by ${CI_COMMIT_AUTHOR} on ${CI_COMMIT_BRANCH}:
${CI_COMMIT_MESSAGE}
when:
event: [push, manual]
status: [failure]
depends_on: [lint]