2021-02-13 14:20:18 +01:00
|
|
|
---
|
2023-02-17 12:06:35 +01:00
|
|
|
image: "robertdebock/github-action-molecule:5.0.0"
|
2021-02-13 14:20:18 +01:00
|
|
|
|
|
|
|
variables:
|
|
|
|
PY_COLORS: 1
|
|
|
|
|
|
|
|
molecule:
|
|
|
|
script:
|
2023-02-17 12:06:35 +01:00
|
|
|
- if [ -f tox.ini ] ; then tox ; fi
|
|
|
|
- if [ ! -f tox.ini ] ; then molecule test ; fi
|
2021-02-13 14:20:18 +01:00
|
|
|
rules:
|
|
|
|
- if: $CI_COMMIT_REF_NAME == "master"
|
|
|
|
parallel:
|
|
|
|
matrix:
|
2023-02-17 12:06:35 +01:00
|
|
|
- image: "alpine"
|
|
|
|
tag: "latest"
|
2021-02-13 14:20:18 +01:00
|
|
|
- image: "amazonlinux"
|
|
|
|
tag: "latest"
|
2023-02-17 12:06:35 +01:00
|
|
|
- image: "enterpriselinux"
|
2021-02-13 14:20:18 +01:00
|
|
|
tag: "7"
|
2023-02-17 12:06:35 +01:00
|
|
|
- image: "enterpriselinux"
|
|
|
|
tag: "8"
|
|
|
|
- image: "enterpriselinux"
|
2021-02-13 14:20:18 +01:00
|
|
|
tag: "latest"
|
|
|
|
- image: "debian"
|
|
|
|
tag: "latest"
|
|
|
|
- image: "debian"
|
2023-02-17 12:06:35 +01:00
|
|
|
tag: "bookworm"
|
2021-02-13 14:20:18 +01:00
|
|
|
- image: "fedora"
|
2023-02-17 12:06:35 +01:00
|
|
|
tag: "36"
|
2021-02-13 14:20:18 +01:00
|
|
|
- image: "fedora"
|
|
|
|
tag: "latest"
|
|
|
|
- image: "fedora"
|
|
|
|
tag: "rawhide"
|
|
|
|
- image: "opensuse"
|
|
|
|
tag: "latest"
|
|
|
|
- image: "ubuntu"
|
|
|
|
tag: "latest"
|
2023-02-17 12:06:35 +01:00
|
|
|
- image: "ubuntu"
|
|
|
|
tag: "focal"
|
2021-02-13 14:20:18 +01:00
|
|
|
- image: "ubuntu"
|
|
|
|
tag: "bionic"
|
|
|
|
|
|
|
|
galaxy:
|
|
|
|
script:
|
2023-02-17 12:06:35 +01:00
|
|
|
- ansible-galaxy role import --api-key ${GALAXY_API_KEY} robertdebock ${CI_PROJECT_NAME}
|
2021-02-13 14:20:18 +01:00
|
|
|
rules:
|
|
|
|
- if: $CI_COMMIT_TAG != null
|