Add the namedref() function (still could use some refactoring).

.gitlab-ci.yml not found in this commit