Hi @christian-chetcuti
we are experiencing the same problem. Our variable is also named GITLAB_ENV and gets somehow overidden with this value you mentioned. Changing GITLAB_ENV to GITLAB_ENVIRONMENT seemed to fix this issue.
I first noticed this error since GitLab updated their runners from 16.3.0~beta.108.g2b6048b4 (2b6048b4) to 16.6.0~beta.105.gd2263193 (d2263193)
Hi There, I think we are facing some similar issues. I tried to summarize it in the post below with my findings on how GITLAB_ENV seems to be working on my gitlab instance. I hope someone replies with more insights!