Skip to content

Commit

Permalink
CI/CD rework
Browse files Browse the repository at this point in the history
  • Loading branch information
brunobenchimol committed Nov 17, 2024
1 parent c4ab10d commit c3979dc
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
3 changes: 3 additions & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
skip_list:
- 'yaml'
- 'role-name'
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
19 changes: 11 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down

0 comments on commit c3979dc

Please sign in to comment.