Can I use custom variables in .rancher-pipeline.yml?

I have a pipeline like:

stages:

  • name: Publish Flask image
    steps:
    • publishImageConfig:
      dockerfilePath: ./Dockerfile
      buildContext: .
      tag: ${CICD_GIT_REPO_NAME}/web:latest
      pushRemote: true
      registry: 10.50.1.63:5443

My problem is that the “registry” is different in each Rancher instance, so the 10.50.1.63:5443 should be a variable. I need something like {CICD_GIT_REPO_NAME} (e.g. {MY_REGISTRY_HOST}), but I can’t see a method to do.
Is there a way to do, or is it impossible?