Files
ansible-role-auth-duo/.woodpecker/cron.yml
Aaron Guise 45ee1940f3
All checks were successful
ci/woodpecker/cron/cron Pipeline was successful
[SKIP CI] Update cron to notify on pipeline status
2023-10-16 20:16:44 +13:00

61 lines
1.7 KiB
YAML

matrix:
include:
- MOLECULE_DISTRO: centos7
- MOLECULE_DISTRO: almalinux8
- MOLECULE_DISTRO: centos7
MOLECULE_SCENARIO: fixed-mirror
- MOLECULE_DISTRO: almalinux8
MOLECULE_SCENARIO: fixed-mirror
clone:
git:
image: woodpeckerci/plugin-git
settings:
recursive: true
submodule_update_remote: true
when:
event: [ cron ]
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}
secrets: [ auth_duo_host,
auth_duo_ikey,
auth_duo_skey,
auth_duo_mirror_url ]
when:
event: [ cron ]
ntfy-failed:
image: codeberg.org/l-x/woodpecker-ntfy
settings:
url: https://ntfy.cybercinch.nz/ci-status
title: notification title
priority: urgent
icon: https://woodpecker-ci.org/img/logo.svg
tags: robot,${CI_BUILD_EVENT},${CI_REPO_NAME}
message: >
Test failed run by cron for ${CI_REPO_NAME}.
when:
evaluate: 'CI_PIPELINE_EVENT == "cron" && CI_PIPELINE_STATUS == "failure"'
ntfy-success:
image: codeberg.org/l-x/woodpecker-ntfy
settings:
url: https://ntfy.cybercinch.nz/ci-status
title: notification title
priority: urgent
icon: https://woodpecker-ci.org/img/logo.svg
tags: robot,${CI_BUILD_EVENT},${CI_REPO_NAME}
message: >
Test success when run by cron for ${CI_REPO_NAME}.
when:
evaluate: 'CI_PIPELINE_EVENT == "cron" && CI_PIPELINE_STATUS == "success"'