mirror of
https://github.com/tektoncd/catalog.git
synced 2024-11-25 06:17:50 +00:00
22983dbc28
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> |
||
---|---|---|
.. | ||
tests | ||
git-version.yaml | ||
README.md |
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.