Question arround variable usage in enviremont names for gitlab ci

Hi,
Small question when I create follow jobs. I would expect that the environment name would be the value of would abc-xx if I look at the job itself the UI says abc-${CI_COMMIT_REF_SLUG} instead of abc-xxxx.
I have the impression that this is correct in the gitlab runner log. But no in the ui

.deploy-base:
 tags: 
  - shell
 stage: deploy
 script: 
   - echo deploy base ${PILOT_HOSTNAME}

deploy-site: 
 extends: .deploy-base
 stage: deploy   
 environment:
   url: "https://${PILOT_HOSTNAME}"
   name: ${k8S_ENV_NAME}
 variables: 
   k8S_ENV_NAME: abc-${CI_COMMIT_REF_SLUG}
   PILOT_HOSTNAME: ${CI_COMMIT_REF_SLUG}-cuepilot.news-mediahuis-tps.eu        
   K8S_NAMESPACE: test

example

1 Like