Metronome

This plugin can be used to deploy applications to a Metronome server, it will create\update the given Metronome tasks as needed.

The below pipeline configuration demonstrates simple usage:

kind: pipeline
name: default

steps:
- name: metronome_deploy
  image: naorlivne/drone-metronome
  settings:
    metronome_host: http://metronome.mesos:9000
    metronome_job_file: metronome.json

Metronome Configuration File

Value substitution

Example configuration with values substitution:

kind: pipeline
name: default

steps:
- name: metronome_deploy
  image: naorlivne/drone-metronome
  settings:
    metronome_host: http://metronome.mesos:9000
    metronome_job_file: metronome.json
    my_image_tag: my_dynamic_image

In the metronome.json file (please note the $ before the PLUGIN_MY_IMAGE_TAG key):

{
  ...
  "image": "myrepo/myimage:$PLUGIN_MY_IMAGE_TAG",
  ...
}

will result in:

{
  ...
  "image": "myrepo/myimage:my_dynamic_image",
  ...
}

Parameter Reference

metronome_host
The Metronome server URL (no trailing slash should be used), defaults to http://metronome.mesos:9000
metronome_job_file
The Metronome configuration file location relative to the root folder of the repo, defaults to metronome.json