Using vars on .gitlab/auto-deploy-values.yaml

Using autodevops together with auto-deploy-image (Files · master · GitLab.org / cluster-integration / auto-deploy-image · GitLab). I am trying to add a init container to my deployments enhancing the file .gitlab/auto-deploy-values.yaml, but i am unable to use any env variables inside this file.

Example:

initContainers:
  - name: init-assets
    image: ${CI_REGISTRY_IMAGE}:${CI_BUILD_REF_SLUG}
    envFrom:
      - secretRef:
          name: staging-jlssos-secret
    command:
      - /bin/sh
      - -c
      - |
        cd /var/www/html && do stuff || true

So basically i can just hard-code stuff there, what is not an option in my case because we use different deployments with different names.

Then i try to make use of the HELM_UPGRADE_EXTRA_ARGS var directly on the deployment, like above but that didnt work too:

 HELM_UPGRADE_STANDARD_EXTRA_ARGS: >-
    --set initcontainers[0].name=${CI_ENVIRONMENT_SLUG}-init-assets
    --set initcontainers[0].image=${CI_REGISTRY_IMAGE}:${CI_BUILD_REF_SLUG}
    --set initContainers[0].env[0].name=GITLAB_ENVIRONMENT_URL
    --set initContainers[0].env[0].value=${CI_ENVIRONMENT_URL}
    --set initcontainers[0].envFrom.secretRef.name=${CI_ENVIRONMENT_SLUG}-secret
    --set initContainers[0].command[0]=echo hello

Question:
How can i implement an init container with auto deploy image/autodevops on my deployments with dynamic values depending on deployment without creating a complete new custom chart?

Thank you in advance