Use Molecule provisioned images
This commit is contained in:
parent
9fd12fe790
commit
9fabd5a845
|
@ -12,14 +12,14 @@ on:
|
|||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
config:
|
||||
- image: centos
|
||||
tag: latest
|
||||
- image: debian
|
||||
tag: latest
|
||||
# strategy:
|
||||
# fail-fast: false
|
||||
# matrix:
|
||||
# config:
|
||||
# - image: centos
|
||||
# tag: latest
|
||||
# - image: debian
|
||||
# tag: latest
|
||||
steps:
|
||||
|
||||
- name: checkout
|
||||
|
@ -29,6 +29,6 @@ jobs:
|
|||
|
||||
- name: molecule
|
||||
uses: robertdebock/molecule-action@2.6.17
|
||||
with:
|
||||
image: ${{ matrix.config.image }}
|
||||
tag: ${{ matrix.config.tag }}
|
||||
# with:
|
||||
# image: ${{ matrix.config.image }}
|
||||
# tag: ${{ matrix.config.tag }}
|
|
@ -1,8 +1,6 @@
|
|||
---
|
||||
- name: Converge
|
||||
hosts: localhost
|
||||
connection: local
|
||||
become: yes
|
||||
hosts: all
|
||||
gather_facts: yes
|
||||
roles:
|
||||
- role: ipr-cnrs.nftables
|
||||
|
|
|
@ -8,11 +8,16 @@ lint: |
|
|||
driver:
|
||||
name: docker
|
||||
platforms:
|
||||
- name: "nftables-${image:-debian}-${tag:-latest}"
|
||||
image: "${image:-debian}:${tag:-latest}"
|
||||
privileged: true
|
||||
volumes:
|
||||
- /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||
- name: ubuntu-latest
|
||||
image: ubuntu:latest
|
||||
- name: centos-latest
|
||||
image: centos-latest
|
||||
# - name: "nftables-${image:-debian}-${tag:-latest}"
|
||||
# image: "${image:-debian}:${tag:-latest}"
|
||||
# command: /lib/systemd/systemd
|
||||
# privileged: true
|
||||
# volumes:
|
||||
# - /sys/fs/cgroup:/sys/fs/cgroup:ro
|
||||
provisioner:
|
||||
name: ansible
|
||||
verifier:
|
||||
|
|
Loading…
Reference in New Issue