Skip to content

GitLab Next

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
GitLab FOSS
GitLab FOSS
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 1
    • Merge requests 1
  • Requirements
    • Requirements
    • List
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • GitLab FOSSGitLab FOSS
  • Issues
  • #23894

Closed (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
None
Milestone
None
Assign milestone
Time tracking