Skip to content

GitLab Next

    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Menu
    Projects Groups Snippets
  • Get a free trial
  • Sign up
  • Login
  • Sign in / Register
  • GitLab FOSS GitLab FOSS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • GitLab FOSSGitLab FOSS
  • Issues
  • #23894
Closed (moved) (moved)
Open
Created Oct 27, 2016 by David Townshend@townshend.dr

Tag creation in pipelines

Description

We are using semantic versioning, specifically an automated system based on commit messaged. Part of our CI pipeline is to calculate the newest version and label all build artifacts with it, so that we know the exact version being deployed. We also want to tag the commit so that we can easily tie a specific artifact in production back to a commit. The problem is that this means doing a git tag followed by git push in the pipeline, which of course triggers another build, potentially in an endless cycle. It is possible to exclude tags form triggering builds using except in the .gitlab-ci.yml file, but this in only at a build level, not a pipeline level, and it still results in two pipelines being reported for every commit.

Proposal

Add a project level way of excluding tags from triggering builds, either via .gitlab-ci.yml or through the UI. Using .gitlab-ci.yml would suggest that a pipeline still needs to be created though, which ideally should not be the case. The documentation suggests that it should also be possible to skip CI by using [skip ci] in the commit message, but this doesn't work for tags (e.g. git tag --annotate v1.0.0 --message "[skip ci]"). If this were changed, it would probably still involve a skipped pipeline being created though.

Assignee
Assign to
Time tracking