Skip to content

Commit

Permalink
Make CI work on GitHub.
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-de-bock committed Jul 4, 2024
1 parent b21926e commit ce0065f
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 13 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,24 @@ jobs:
fail-fast: false
matrix:
config:
- image: "enterpriselinux"
tag: "8"
- image: "enterpriselinux"
tag: "latest"
steps:
- name: checkout
uses: actions/checkout@v4

- name: Set up Python 3.
uses: actions/setup-python@v5
with:
path: "${{ github.repository }}"
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: molecule
uses: robertdebock/molecule[email protected]
with:
run: molecule converge
env:
image: ${{ matrix.config.image }}
tag: ${{ matrix.config.tag }}
2 changes: 0 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ molecule:
- if: $CI_COMMIT_REF_NAME == "master"
parallel:
matrix:
- image: "enterpriselinux"
tag: "8"
- image: "enterpriselinux"
tag: "latest"

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ This role has been tested on these [container images](https://hub.docker.com/u/r

|container|tags|
|---------|----|
|[EL](https://hub.docker.com/r/robertdebock/enterpriselinux)|all|
|[EL](https://hub.docker.com/r/robertdebock/enterpriselinux)|9|

The minimum version of Ansible required is 2.12, tests have been done to:

Expand Down
2 changes: 1 addition & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ galaxy_info:
platforms:
- name: EL
versions:
- all
- "9"

galaxy_tags:
- epel
Expand Down
2 changes: 1 addition & 1 deletion molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ platforms:
image: "${namespace:-robertdebock}/${image:-fedora}:${tag:-latest}"
command: /sbin/init
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /sys/fs/cgroup:/sys/fs/cgroup:rw
privileged: true
pre_build_image: true
provisioner:
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ansible-compat == 4.*
molecule == 6.*
ansible-compat == 24.*
molecule == 24.*
molecule-plugins[docker] == 23.*
ansible-lint == 6.*
ansible-lint == 24.*
paramiko == 3.*

0 comments on commit ce0065f

Please sign in to comment.