Run pipelines on new tags
Current workflow rules won't run a pipeline when a new tag is created.
workflow:
rules:
- if: $CI_MERGE_REQUEST_ID # Execute jobs in merge request context
- if: $CI_COMMIT_BRANCH == 'master' # Execute jobs when a new commit is pushed to master branch
We need to add a rule for tags in the workflow
- if: $CI_COMMIT_TAG
And we'll need to run a pipeline manually for https://gitlab.com/gitlab-org/release-cli/-/releases/v0.2.0 so that the docker tag v0.2.0
is created.
Edited by Jaime Martinez