GitTag

GitTag is a builtin action, you can’t modify it.

Tag the current branch and push it. Use vcs config from your application. Semver used if fully compatible with https://semver.org.

Parameters

Requirements

YAML example

Example of a pipeline using GitTag action:

version: v1.0
name: Pipeline1
parameters:
  tagLevel:
    type: list
    default: major;minor;patch
    description: major, minor or patch
stages:
- Stage1
jobs:
- job: Job1
  stage: Stage1
  steps:
  - checkout: '{{.cds.workspace}}'
  - gitTag:
      path: '{{.cds.workspace}}'
      tagLevel: '{{.cds.pip.tagLevel}}'
      tagMessage: Release from CDS run {{.cds.version}}

Example

Tutorial that use this action: Build, tag and release an application.