From c3979dc2122056c5697598734e2567600e99a947 Mon Sep 17 00:00:00 2001 From: brunobenchimol Date: Sun, 17 Nov 2024 20:28:16 -0300 Subject: [PATCH] CI/CD rework --- .ansible-lint | 3 +++ .github/workflows/ci.yml | 14 +++++++------- .github/workflows/release.yml | 19 +++++++++++-------- 3 files changed, 21 insertions(+), 15 deletions(-) create mode 100644 .ansible-lint diff --git a/.ansible-lint b/.ansible-lint new file mode 100644 index 0000000..acc8255 --- /dev/null +++ b/.ansible-lint @@ -0,0 +1,3 @@ +skip_list: + - 'yaml' + - 'role-name' diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 01748d5..e964f8b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -66,18 +66,18 @@ jobs: # - distro: centos7 # playbook: converge.yml # experimental: false - - distro: centos8 - playbook: converge.yml - experimental: false + # - distro: centos8 + # playbook: converge.yml + # experimental: false - distro: ubuntu2004 playbook: converge.yml experimental: false - # - distro: debian10 - # playbook: converge.yml - # experimental: false - - distro: debian11 + - distro: debian10 playbook: converge.yml experimental: false + # - distro: debian11 + # playbook: converge.yml + # experimental: false - distro: rockylinux9 playbook: converge.yml experimental: false diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9ea7ce4..96c6ac2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,23 +23,26 @@ jobs: strategy: matrix: include: - - distro: centos8 - playbook: converge-issue-certificate.yml + # - distro: centos8 + # playbook: converge-issue-certificate.yml + # experimental: false + - distro: rockylinux9 + playbook: converge.yml experimental: false steps: - name: Check out the codebase. - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: path: 'brunobenchimol.certbot_dns' - name: Set up Python 3. - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: '3.x' - name: Install test dependencies. - run: pip3 install ansible molecule[docker] docker + run: pip3 install ansible molecule molecule-plugins[docker] docker - name: Run Molecule tests. run: molecule test @@ -59,17 +62,17 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out the codebase. - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: path: 'brunobenchimol.certbot_dns' - name: Set up Python 3. - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: '3.x' - name: Install Ansible. - run: pip3 install ansible-base + run: pip3 install ansible-base ansible-core # Alternative: https://github.com/marketplace/actions/publish-ansible-role-to-galaxy - name: Trigger a new import on Galaxy.