I would like to trigger a GitLab project, but instead of using a branch, I would like to use a specific tag. How can this be achieved?
The following triggers the develop branch of some-project:
bridge:
stage: bridge
trigger:
project: some-project
branch: develop
>Solution :
You can use the parent-child pipeline feature with the ref keyword, like this:
bridge:
stage: bridge
trigger:
include:
- project: some-project
ref: 'your-tag'
file: '.gitlab-ci.yml'