Skip to content

Commit

Permalink
Merge pull request #3 from adfinis/molecule_workflow
Browse files Browse the repository at this point in the history
ci(molecule): use reusable workflow
  • Loading branch information
adf-patrickha authored Jan 28, 2025
2 parents 5198d8b + e09e9e1 commit ece9bb1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 55 deletions.
55 changes: 1 addition & 54 deletions .github/workflows/molecule.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
---
#
# Ansible managed
#

name: Ansible Molecule

on:
Expand All @@ -14,54 +10,5 @@ on:
- cron: '3 2 2 * *'

jobs:
lint:
runs-on: ubuntu-20.04
steps:
- name: checkout
uses: actions/checkout@v3
- name: ansible-lint
uses: ansible-community/ansible-lint-action@main
test:
needs:
- lint
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
config:
- image: "debian"
tag: "latest"
- image: "debian"
tag: "bullseye"
- image: "debian"
tag: "buster"
- image: "enterpriselinux"
tag: "7"
- image: "enterpriselinux"
tag: "8"
- image: "enterpriselinux"
tag: "latest"
- image: "fedora"
tag: "37"
- image: "fedora"
tag: "38"
- image: "opensuse"
tag: "latest"
- image: "ubuntu"
tag: "latest"
- image: "ubuntu"
tag: "focal"
steps:
- name: checkout
uses: actions/checkout@v3
with:
path: "${{ github.repository }}"
- name: disable apparmor for mysql
run: sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/
- name: parse apparmor for mysql
run: sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld
- name: molecule
uses: robertdebock/[email protected]
with:
image: ${{ matrix.config.image }}
tag: ${{ matrix.config.tag }}
uses: adfinis/github-workflows-bareos/.github/workflows/[email protected]
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: yes
pre_build_image: yes
provisioner:
Expand Down
2 changes: 2 additions & 0 deletions requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
roles:
- name: robertdebock.bootstrap
- name: adfinis.bareos_repository
collections:
- name: community.general

0 comments on commit ece9bb1

Please sign in to comment.