45 lines
935 B
YAML
45 lines
935 B
YAML
---
|
|
image: "robertdebock/github-action-molecule:3.3.1"
|
|
|
|
services:
|
|
- docker:dind
|
|
|
|
variables:
|
|
DOCKER_HOST: "tcp://docker:2375"
|
|
PY_COLORS: 1
|
|
|
|
molecule:
|
|
script:
|
|
- image=${image} tag=${tag} molecule test
|
|
rules:
|
|
- if: $CI_COMMIT_REF_NAME == "master"
|
|
retry: 1
|
|
parallel:
|
|
matrix:
|
|
- image: "alpine"
|
|
tag: "latest"
|
|
- image: "amazonlinux"
|
|
tag: "latest"
|
|
- image: "enterpriselinux"
|
|
tag: "latest"
|
|
- image: "debian"
|
|
tag: "latest"
|
|
- image: "debian"
|
|
tag: "bookworm"
|
|
- image: "fedora"
|
|
tag: "34"
|
|
- image: "fedora"
|
|
tag: "latest"
|
|
- image: "fedora"
|
|
tag: "rawhide"
|
|
- image: "ubuntu"
|
|
tag: "latest"
|
|
- image: "ubuntu"
|
|
tag: "bionic"
|
|
|
|
galaxy:
|
|
script:
|
|
- ansible-galaxy role import --api-key ${GALAXY_API_KEY} ${CI_PROJECT_NAMESPACE} ${CI_PROJECT_NAME}
|
|
rules:
|
|
- if: $CI_COMMIT_TAG != null
|