Sign inSign up

osshelp/drone-molecule

By osshelp

Updated over 1 year ago

Drone CI plugin with Molecule inside

Image
1

2.7K

osshelp/drone-molecule repository overview

Description

Docker image for testing and release Ansible roles via Molecule (+testinfra).

Usage

Modes (action)
  • test - tests only
  • upload - upload only
  • release - tests and upload
Other settings
  • scenario - molecule scenario. default: default
  • lxd_remote_host and lxd_remote_port - LXD connection parameters
  • release_directory - the name of the local temporary folder to create an archive with the role
  • ansible_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 and minio_bucket - minio connection parameters
  • upload_prefix - nested directories inside bucket
  • upload_as - override archive name with role
  • minio_debug - debug mode for minio
  • release_alias - upload alias. Default: tag -> stable, master branch -> latest, any branch -> branch name
  • debug - debug mode
Common example
---
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

Sources

Source repository is available at Github here.

License

GPL3

Author

OSSHelp Team, see https://oss.help

Tag summary

Content type

Image

Digest

sha256:3895bd9e7

Size

188.1 MB

Last updated

over 1 year ago

docker pull osshelp/drone-molecule