1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-10-18 02:19:26 +00:00
catalog/task/git-version/0.1
Yulia Gaponenko 22983dbc28 Change platforms annotation to git-* tasks
Annotation about linux/amd64, linux/s390x, and linux/ppc64le platforms
was added to the latest versions of the git-batch-merge,
git-clone, git-rebase tasks.

Platforms annotation was changed for git-version task, leaving only
linux/amd64.

Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com>
2021-10-27 16:13:36 +01:00
..
tests Create first git-version task 2021-08-16 09:13:08 +01:00
git-version.yaml Change platforms annotation to git-* tasks 2021-10-27 16:13:36 +01:00
README.md Change platforms annotation to git-* tasks 2021-10-27 16:13:36 +01:00

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://raw.githubusercontent.com/tektoncd/catalog/main/task/git-version/0.1/git-version.yaml

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.