29 lines
717 B
Django/Jinja
29 lines
717 B
Django/Jinja
---
|
|
image: "robertdebock/github-action-molecule:5.0.2"
|
|
|
|
variables:
|
|
PY_COLORS: 1
|
|
|
|
molecule:
|
|
script:
|
|
- if [ -f tox.ini ] ; then tox ; fi
|
|
- if [ ! -f tox.ini ] ; then molecule test ; fi
|
|
rules:
|
|
- if: $CI_COMMIT_REF_NAME == "master"
|
|
parallel:
|
|
matrix:
|
|
{% for platform in meta.galaxy_info.platforms %}
|
|
{% for version in platform.versions %}
|
|
{% for tag in distribution_version_mapping[platform.name][version] %}
|
|
- image: "{{ platform_image_mapping[platform.name] }}"
|
|
tag: "{{ tag }}"
|
|
{% endfor %}
|
|
{% endfor %}
|
|
{% endfor %}
|
|
|
|
galaxy:
|
|
script:
|
|
- ansible-galaxy role import --api-key ${GALAXY_API_KEY} {{ galaxy_namespace }} ${CI_PROJECT_NAME}
|
|
rules:
|
|
- if: $CI_COMMIT_TAG != null
|