1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-23 06:08:46 +00:00
catalog/task/git-version/0.1/README.md
Quan Zhang e294e1246b [TEP-0110] Update Tekton Catalog installation instructions
Prior to this change, the installation instructions directly use the resource urls in the Catalog repo, which results in tight coupling between the organization and how users fetch resources (as described in TEP-0110). This commit updates the installation guide to install Tekton Catalog resources via Tekton Hub Api: https://github.com/tektoncd/hub/pull/539

This change decouples the Tekton Catalog organization from resouces resolution, which enables Tekton Catalog reorganization.
2022-08-16 16:25:52 +01:00

864 B

Generate a version from git history

The git-version task let you generate a version from git history using https://gitversion.net/

Install the Task

kubectl apply -f https://api.hub.tekton.dev/v1/resource/tekton/task/git-version/0.1/raw

Workspaces

  • source: A workspace with a checked out git repository.

Parameters

  • branch:: The branch to checkout to create a version for e.g. "develop"

Results

  • gitVersion: The calculated git version you could use for git tagging e.g. "0.1.0-tektonize.1-188"
  • packageVersion: A normalized version for use in container images e.g. "0.1.0-tektonize.1-188"

Usage

You will need to make sure the used workspace has a git clone with all the history available. Git clone with a depth of "0" is therefore needed.

Platforms

The Task can be run on linux/amd64 platform.