Skip to content

An Github Action which runs molecule within a docker image.

License

Notifications You must be signed in to change notification settings

borisskert/molecule-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

molecule action

This action runs molecule within its docker image.

Inputs

arguments

Optional The used molecule arguments, default is test

Example usage

  - name: lint and test with molecule
    uses: borisskert/molecule-action@master
    with:
      arguments: test

Docker image

Contents

This image is based on alpine:3 and contains:

  • python3
  • molecule 3.3.3
  • ansible 2.11.1
  • ansible-lint 5.0.11
  • yamllint 1.26.1
  • molecule-docker - the molecule docker driver
  • docker - cli and python package; used by the molecule docker driver.
  • git - Used to checkout git repositories

Usage

Due to docker entrypoint is molecule the usage is quite simple:

$ docker run --rm borisskert/molecule:latest --version
molecule 3.3.3 using python 3.8 
    ansible:2.11.1
    delegated:3.3.3 from molecule
    docker:0.2.4 from molecule_docker

Further links