Skip to content

Latest commit

 

History

History

service

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

drone pipeline template for services

In this directory you'll find some very basic examples of how to configure a drone pipeline to:

  • push a latest build to docker hub on every push to master
  • verify pull requests with a docker build dry run
  • build and push a tagged build to docker hub when a tag is pushed

You could also combine these in a single pipeline with conditional steps, but that's not what we went for here.

The pipeline uses the docker plugin, by default it will use the same repository name on docker hub as on github. It uses the DRONE_REPO pipeline param for that. If you this should be different, you have several options:

  1. hardcode the correct repository in every pipeline
  2. use drone's string operations to modify the parameter