Files
ansible-role-auth-duo/.woodpecker/test.yml

50 lines
1.3 KiB
YAML
Raw Normal View History

2024-01-30 13:50:27 +13:00
labels:
2024-01-30 13:52:03 +13:00
location: local
2023-10-10 23:25:49 +13:00
matrix:
2023-10-12 16:48:11 +13:00
include:
- MOLECULE_DISTRO: centos7
- MOLECULE_DISTRO: almalinux8
2023-10-13 11:30:37 +13:00
2023-10-13 12:06:24 +13:00
clone:
git:
image: woodpeckerci/plugin-git
settings:
recursive: true
submodule_update_remote: true
when:
event: [ push, manual ]
2023-10-10 23:25:49 +13:00
steps:
test:
name: Test on ${MOLECULE_DISTRO}
image: guisea/ansible-molecule
pull: true
2023-10-13 09:19:33 +13:00
environment:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
2023-10-10 23:25:49 +13:00
volumes:
2023-10-12 16:34:26 +13:00
- /var/run/docker.sock:/var/run/docker.sock
2023-10-10 23:25:49 +13:00
commands:
2023-10-13 10:45:33 +13:00
- molecule test --scenario-name ${MOLECULE_SCENARIO:-default}
2023-10-13 09:19:21 +13:00
secrets: [ auth_duo_host, auth_duo_ikey, auth_duo_skey, auth_duo_mirror_url ]
2023-10-10 23:25:49 +13:00
when:
2023-10-12 16:34:26 +13:00
event:
- push
- manual
2023-10-18 12:44:24 +13:00
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 ]
2023-10-10 23:25:49 +13:00
depends_on:
- lint