I have to update the synthax on our .gitlab-ci.yml from only synthax to rules. I did the majority of the changes, but I cannot find information on the following synthax :
deploy-image:
stage: deploy
only:
- stage@helloTeam/Expansion
helloTeam/Expansion is the name of our repository, but I don't know what the stage@ is for. And how to convert it with rules. Any idea ?
This is documented in only/except examples for job control.
And one example of its usage:
So,
foo@bar/bazinonly:meansfoois a ref (branch name or special keyword) andbar/bazis a repository path.The following
rules:could be used as an equivalent to this using the predefined variablesCI_COMMIT_REF_NAMEandCI_PROJECT_PATH: