I’m experimenting with CI/CD components and have stumbled upon a versioning problem.
I would like to put a custom builder image and a template referencing that image in the same repository. This works more or less perfectly with main
branch, i.e.
Project’s .gitlab-ci.yml
:
include:
- component: mygitlab.com/group/project@main
Component template:
job:
image: "registry.mygitlab.com/group/project:main"
However, if I release this component, I would like to reference the tagged version of the image inside the component, which I see no obvious way to do:
Project’s .gitlab-ci.yml
:
include:
- component: mygitlab.com/group/project@0.0.1
Component template:
job:
image: "registry.mygitlab.com/group/project:???"
What are my options here?