Adding secrets to plugin settings

Hey Drone.io community,

I’m currently thinking about turning ipfs-deploy into a docker plugin, but the plugin would require to have some values added via secrets, what’s the correct syntax for this? I cannot find it anywhere in the documentation.

You can source plugin settings from a secret using the from_secret syntax. See https://docs.drone.io/secret/repository/

(for brevity):

steps:
- name: build
  image: plugins/docker
  settings:
    repo: octocat/hello-world
    username:
      from_secret: docker_username
    password:
      from_secret: docker_password

Thanks!