Can I use secrets as repo name?

Hi, I’m trying to do something like this:

pipeline:

  install:
    image: node:8-slim
    commands:
      - npm install

  publish:
    image: plugins/docker
    repo: ${REGISTRY_NAME}/${DRONE_REPO_OWNER}/${DRONE_REPO_NAME}
    registry: ${REGISTRY_NAME}
    dockerfile: Dockerfile
    secrets: [ docker_username, docker_password, registry_name ]
    tags:
      - ${DRONE_COMMIT}
      - latest

I don’t know actually I can use custom named secret like this. Assuming docker_username and docker_password are built in one. Is it possible to use secrets like this or is there any built in secret name for such function?

No, it is not possible to interpolate secrets in the yaml using ${variable} syntax.