Skip to content

spritsail/drone-docker-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Layers Latest Version Git Commit Docker Stars Docker Pulls Test Status

A plugin for Drone CI to start and test build docker images

Supported tags and respective Dockerfile links

latest - (Dockerfile)

Configuration

An example configuration of how the plugin should be configured:

pipeline:
  test:
    image: spritsail/docker-test
    volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ]
    repo: test-me:latest
    retry: 5
    curl: ':8080/healthcheck'
    pipe: grep -qw 'online'
    exec_post: |
      grep -q 'teststring' /var/thing/file; another-command

To start a container and run a command inside it, then exit:

pipeline:
  test:
    image: spritsail/docker-test
    volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ]
    repo: test-me:latest
    run: my-program --version

Available options

  • repo tag for the image to run and test required
  • delay startup delay for the container before executing any actions
  • run run a command in a test container and exit optional
  • curl url path to curl e.g. :8080/directory optional
  • curl_opts additional options to pass to curl optional
  • retry curl retry count before giving up
  • retry_delay curl delay before retrying
  • pipe shell code to execute on curl output. useful for ensuring output correctness
  • exec_pre shell commands inside the container to run before curl optional
  • exec_post shell commands inside the container to run after curl optional
  • run_args arguments to pass to docker create optional
  • run_cmd override docker container CMD optional
  • verbose print curl output and running commands. default false

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published