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

44 lines
1.1 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-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:
ansible-lint:
name: "Lint: Ansible-lint"
image: guisea/ansible-molecule
2023-10-13 09:19:33 +13:00
environment:
PY_COLORS: '1'
ANSIBLE_FORCE_COLOR: '1'
2023-10-10 23:25:49 +13:00
commands:
- ansible-lint -c ".ansible-lint"
when:
2023-10-13 14:37:43 +13:00
event: [ push, manual ]
2023-10-10 23:25:49 +13:00
yamllint:
name: "Lint: Yamllint"
image: guisea/ansible-molecule
commands:
2023-10-13 09:19:33 +13:00
- yamllint -f colored .
2023-10-10 23:25:49 +13:00
when:
2023-10-13 14:37:43 +13:00
event: [ push, manual ]
2023-10-18 12:32:12 +13:00
ntfy:
image: codeberg.org/l-x/woodpecker-ntfy
settings:
url: https://ntfy.cybercinch.nz/ci-status
2023-10-18 12:36:37 +13:00
title: "Lint failed for ${CI_REPO_NAME}"
2023-10-18 12:32:12 +13:00
priority: urgent
icon: https://woodpecker-ci.org/img/logo.svg
2023-10-18 12:51:43 +13:00
tags: robot,warning,rotating_light,${CI_BUILD_EVENT},${CI_REPO_NAME}
2023-10-18 12:32:12 +13:00
message: >
📝 Commit by ${CI_COMMIT_AUTHOR} on ${CI_COMMIT_BRANCH}:
${CI_COMMIT_MESSAGE}
when:
2023-10-18 12:36:37 +13:00
event: [ push, manual ]
2023-10-18 12:34:22 +13:00
status: [ failure ]