Nomad runner example


I’d like to use drone with my nomad cluster. I’ve seen that there is a nomad runner but i don’t find any example of a pipeline that uses it to deploy a job on nomad.

Could someone give me a clue about where to get one or how to do it?

Thank you in advance.

Well, I wrote this for people searching for this topic in the future.

I still don’t know how to use the Nomad runner but the approach I’m using right now is to use in the pipeline a docker image that has Nomad. The best one I found is this one: hendrikmaus/nomad-cli and I use it like this:

kind: pipeline
name: default
- name: deploy to nomad
  image: hendrikmaus/nomad-cli:1.1.6
      from_secret: NOMAD_TOKEN
  - nomad run -address=http://<your-nomad-host>:4646 service.nomad 

Hope this can help someone.