I am using a simplistic
.gitlab-ci.yml with the
include keyword to remotely fetch the build config from a centrally managed location. This URL must contain some project-specific parameters such as the project ID and a token. I have the token defined in Settings -> CI/CD -> Env variables but it doesn’t seem like Gitlab expand the variables so I can do like this:
Is this supposed to work or not supported? Since variables expansion works elsewhere in
.gitlab-ci.yml I assumed it would work for the
include keyword as well.
Having to hard-code the values is not ideal.