I seem to be doing something wrong but I think I’m using !reference exactly as the doc describes.
Here’s the relevant section from .git-ci.yml:
.test:
script:
- echo this comes from .test
build:test:
stage: build
image: ${CI_REGISTRY}/sr/linux/containers/build/build:$CI_COMMIT_REF_NAME
script:
- !reference [.test, script]
And here’re the relevant lines from the run log:
$ .test
/usr/bin/bash: line 105: .test: command not found
Can anyone explain what I’m seeing? Or perhaps, what I need to do to get the behavior I’m expecting from the doc?