Docker image for testing and release Ansible roles via Molecule (+testinfra).
test
- tests onlyupload
- upload onlyrelease
- tests and upload
scenario
- molecule scenario. default:default
lxd_remote_host
andlxd_remote_port
- LXD connection parametersrelease_directory
- the name of the local temporary folder to create an archive with the roleansible_requirements
- The path to the requirements file that will be used to load roles. (requirements.yml by default)ansible_profiler
- an option to control ansible-profiler (true by default)ansible_errors_fatal
- whether to consider all errors during the execution of roles at the stage of rolling the playbook fatal (true by default).minio_alias
- the name that will be used when generating the variable for minio-client. ("remote" by default)minio_host
andminio_bucket
- minio connection parametersupload_prefix
- nested directories inside bucketupload_as
- override archive name with roleminio_debug
- debug mode for miniorelease_alias
- upload alias. Default: tag -> stable, master branch -> latest, any branch -> branch namedebug
- debug mode
---
kind: pipeline
name: test
steps:
- name: test
image: osshelp/drone-molecule
environment:
LXD_REMOTE_PASSWORD:
from_secret: lxd_remote_password
settings:
action: test
---
kind: pipeline
name: publish
depends_on: [test]
trigger:
status: [success]
event: [push, tag]
ref:
- refs/heads/*
- refs/tags/*
steps:
- name: publish
image: osshelp/drone-molecule
environment:
MINIO_USER:
from_secret: minio_user
MINIO_SECRET:
from_secret: minio_secret
settings:
action: upload
For internal purposes and OSSHelp customers we have an alternative image url:
image: oss.help/drone/molecule
There is no difference between the DockerHub image and the oss.help/drone image.
- add docker client (?)