You've already forked ansible-role-common
Update CI
This commit is contained in:
29
.woodpecker/cron.yml
Normal file
29
.woodpecker/cron.yml
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- MOLECULE_DISTRO: centos7
|
||||||
|
- MOLECULE_DISTRO: almalinux8
|
||||||
|
|
||||||
|
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: [ ]
|
||||||
|
when:
|
||||||
|
event: [ cron ]
|
||||||
@@ -7,9 +7,9 @@ steps:
|
|||||||
PY_COLORS: '1'
|
PY_COLORS: '1'
|
||||||
ANSIBLE_FORCE_COLOR: '1'
|
ANSIBLE_FORCE_COLOR: '1'
|
||||||
commands:
|
commands:
|
||||||
- ansible-lint --format pep8 -c ".ansible-lint"
|
- ansible-lint -c ".ansible-lint"
|
||||||
when:
|
when:
|
||||||
event: push
|
event: [ push, manual ]
|
||||||
yamllint:
|
yamllint:
|
||||||
group: test
|
group: test
|
||||||
name: "Lint: Yamllint"
|
name: "Lint: Yamllint"
|
||||||
@@ -17,4 +17,4 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- yamllint -f colored .
|
- yamllint -f colored .
|
||||||
when:
|
when:
|
||||||
event: push
|
event: [ push, manual ]
|
||||||
|
|||||||
@@ -1,7 +1,16 @@
|
|||||||
matrix:
|
matrix:
|
||||||
MOLECULE_DISTRO:
|
include:
|
||||||
- centos7
|
- MOLECULE_DISTRO: centos7
|
||||||
- almalinux8
|
- MOLECULE_DISTRO: almalinux8
|
||||||
|
|
||||||
|
clone:
|
||||||
|
git:
|
||||||
|
image: woodpeckerci/plugin-git
|
||||||
|
settings:
|
||||||
|
recursive: true
|
||||||
|
submodule_update_remote: true
|
||||||
|
when:
|
||||||
|
event: [ push, manual ]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
test:
|
test:
|
||||||
@@ -9,15 +18,16 @@ steps:
|
|||||||
image: guisea/ansible-molecule
|
image: guisea/ansible-molecule
|
||||||
pull: true
|
pull: true
|
||||||
environment:
|
environment:
|
||||||
ANSIBLE_CALLBACK_WHITELIST: profile_tasks
|
|
||||||
EPEL_MIRROR_URL: https://mirrors.guise.net.nz/epel
|
|
||||||
PY_COLORS: '1'
|
PY_COLORS: '1'
|
||||||
ANSIBLE_FORCE_COLOR: '1'
|
ANSIBLE_FORCE_COLOR: '1'
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
commands:
|
commands:
|
||||||
- molecule test --all
|
- molecule test --scenario-name ${MOLECULE_SCENARIO:-default}
|
||||||
|
secrets: []
|
||||||
when:
|
when:
|
||||||
event: push
|
event:
|
||||||
|
- push
|
||||||
|
- manual
|
||||||
depends_on:
|
depends_on:
|
||||||
- lint
|
- lint
|
||||||
|
|||||||
17
.woodpecker/z.cron-ntfy.yml
Normal file
17
.woodpecker/z.cron-ntfy.yml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
skip_clone: true
|
||||||
|
|
||||||
|
steps:
|
||||||
|
ntfy-success:
|
||||||
|
image: codeberg.org/l-x/woodpecker-ntfy
|
||||||
|
settings:
|
||||||
|
url: https://ntfy.cybercinch.nz/ci-status
|
||||||
|
title: Build succeeded on ${CI_REPO_NAME}
|
||||||
|
priority: urgent
|
||||||
|
icon: https://woodpecker-ci.org/img/logo.svg
|
||||||
|
tags: robot,white_check_mark,${CI_BUILD_EVENT},${CI_REPO_NAME}
|
||||||
|
message: >
|
||||||
|
📝 Commit by ${CI_COMMIT_AUTHOR} on ${CI_COMMIT_BRANCH}:
|
||||||
|
|
||||||
|
${CI_COMMIT_MESSAGE}
|
||||||
|
runs_on: [ success ]
|
||||||
|
|
||||||
16
.woodpecker/z.failed-cron-ntfy.yml
Normal file
16
.woodpecker/z.failed-cron-ntfy.yml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
skip_clone: true
|
||||||
|
|
||||||
|
steps:
|
||||||
|
ntfy-failed:
|
||||||
|
image: codeberg.org/l-x/woodpecker-ntfy
|
||||||
|
settings:
|
||||||
|
url: https://ntfy.cybercinch.nz/ci-status
|
||||||
|
title: Build failed on ${CI_REPO_NAME}
|
||||||
|
priority: urgent
|
||||||
|
icon: https://woodpecker-ci.org/img/logo.svg
|
||||||
|
tags: robot,rotating_light,no_entry,${CI_BUILD_EVENT},${CI_REPO_NAME}
|
||||||
|
message: >
|
||||||
|
📝 Commit by ${CI_COMMIT_AUTHOR} on ${CI_COMMIT_BRANCH}:
|
||||||
|
|
||||||
|
${CI_COMMIT_MESSAGE}
|
||||||
|
runs_on: [ failure ]
|
||||||
Reference in New Issue
Block a user