Plugins/docker argument from concatenating secrets

I would like to write a .drone.yaml to publish docker to a private registry whose domain can be modified by secret. The secret docker_registry_host is an organisation secret (wish the global secret feature for the whole company). ${DOCKER_REGISTRY_HOST} is not a system-defined variable, thus it is not available when building argument repo Is there any way to accomplish this?

- name: publish
  image: plugins/docker
  environment:
    DOCKER_REGISTRY_HOST:
      from_secret: docker_registry_host
  settings:
    registry:
      from_secret: docker_registry_host
    repo: ${DOCKER_REGISTRY_HOST}/${DRONE_REPO_NAMESPACE}/${DRONE_REPO_NAME}
  when:
    branch:
    - master
1 Like

You cannot concatenate secrets in the yaml in this manner.

any update or solution for this use case?