From 6cbcbbad7a77e25c2309ae0fbaa0f17043ef2a53 Mon Sep 17 00:00:00 2001 From: Aaron Guise Date: Thu, 5 Oct 2023 16:41:38 +1300 Subject: [PATCH] Update CI --- .woodpecker.yml | 18 ------------------ .woodpecker/.1.test.yml | 17 +++++++++++++++++ .woodpecker/.2.build.yml | 19 +++++++++++++++++++ 3 files changed, 36 insertions(+), 18 deletions(-) delete mode 100644 .woodpecker.yml create mode 100644 .woodpecker/.1.test.yml create mode 100644 .woodpecker/.2.build.yml diff --git a/.woodpecker.yml b/.woodpecker.yml deleted file mode 100644 index 7ba4d55..0000000 --- a/.woodpecker.yml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/.woodpecker/.1.test.yml b/.woodpecker/.1.test.yml new file mode 100644 index 0000000..6eb0bad --- /dev/null +++ b/.woodpecker/.1.test.yml @@ -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 \ No newline at end of file diff --git a/.woodpecker/.2.build.yml b/.woodpecker/.2.build.yml new file mode 100644 index 0000000..b7d2271 --- /dev/null +++ b/.woodpecker/.2.build.yml @@ -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'] \ No newline at end of file