Update CI
Some checks failed
ci/woodpecker/push/1.test Pipeline failed

This commit is contained in:
2023-10-05 16:41:38 +13:00
parent 373273dabf
commit 6cbcbbad7a
3 changed files with 36 additions and 18 deletions

View File

@@ -1,18 +0,0 @@
matrix:
MOLECULE_DISTRO:
- centos7
- almalinux8
steps:
build:
image: guisea/ansible-molecule
pull: true
environment:
ANSIBLE_CALLBACK_WHITELIST: profile_tasks
EPEL_MIRROR_URL: https://mirrors.guise.net.nz/epel
volumes:
- /var/run/docker.sock:/var/run/docker.sock
commands:
- molecule test --all
when:
event: push

17
.woodpecker/.1.test.yml Normal file
View File

@@ -0,0 +1,17 @@
steps:
ansible-lint:
group: test
name: "Lint: Ansible-lint"
image: guisea/ansible-molecule
commands:
- ansible-lint
when:
event: push
yamllint:
group: test
name: "Lint: Yamllint"
image: guisea/ansible-molecule
commands:
- yamllint
when:
event: push

19
.woodpecker/.2.build.yml Normal file
View File

@@ -0,0 +1,19 @@
matrix:
MOLECULE_DISTRO:
- centos7
- almalinux8
steps:
build:
image: guisea/ansible-molecule
pull: true
environment:
ANSIBLE_CALLBACK_WHITELIST: profile_tasks
EPEL_MIRROR_URL: https://mirrors.guise.net.nz/epel
volumes:
- /var/run/docker.sock:/var/run/docker.sock
commands:
- molecule test --all
when:
event: push
depends_on: ['ansible-lint','yamllint']