-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (52 loc) · 1.6 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: CI
on: # yamllint disable-line rule:truthy
schedule:
- cron: "5 5 1 * *"
push:
branches:
- master
pull_request:
branches:
- master
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch: ~
jobs:
molecule:
runs-on: ubuntu-20.04
strategy:
matrix:
distro:
- image: jrei/systemd-ubuntu:20.04
instance: systemd-ubuntu-20.04
beats_flavor:
- auditbeat
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.12'
- name: Install molecule
run: pip3 install ansible molecule molecule-docker
- name: Run molecule create
run: molecule create
env:
MOLECULE_DISTRO: ${{ matrix.distro.image }}
MOLECULE_INSTANCE_NAME: ${{ matrix.distro.instance }}
MOLECULE_BEATS_FLAVOR: ${{ matrix.beats_flavor }}
- name: Check docker
run: docker --version && docker ps -a
- name: Run molecule prepare
run: molecule prepare
env:
MOLECULE_DISTRO: ${{ matrix.distro.image }}
MOLECULE_INSTANCE_NAME: ${{ matrix.distro.instance }}
MOLECULE_BEATS_FLAVOR: ${{ matrix.beats_flavor }}
- name: Check docker__
run: docker --version && docker ps -a
- name: Run molecule
run: molecule converge
env:
MOLECULE_DISTRO: ${{ matrix.distro.image }}
MOLECULE_INSTANCE_NAME: ${{ matrix.distro.instance }}
MOLECULE_BEATS_FLAVOR: ${{ matrix.beats_flavor }}