Custom parameters in YAML

Hi,

what I am trying to do is pass a custom parameter which would specify a tag for a docker image:

  build_image:
    image: plugins/gcr
    registry: eu.gcr.io
    repo: data-tooling-s/shingle
    commnads:
      - env
    tags:
      - ${MY_CUSTOM_PARAM}
    repo: eu.gcr.io/data-tooling-s/shingle
    secrets: [google_credentials]
    when:
      event: deployment
      environment: staging

I am, however not able to “interpolate” this in the build - it’s just always empty. The same behavior goes for helm plugin with release name for example.

drone deploy -p MY_CUSTOM_PARAM=my-val repo 77 staging

Is it even possible to do this for plugins? I can see that the variable is propagating as environment variable during the builds steps.

Thanks