From f9169707ef6d734b405f823036ed1b4ffecfded8 Mon Sep 17 00:00:00 2001 From: Chmouel Boudjnah Date: Tue, 30 Apr 2024 17:41:06 +0200 Subject: [PATCH] update README --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5bbf6e72a..e31b48a43 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ kubectl create -f pipeline-go.yaml Start it with the tkn cli (change the value as needed): ```shell -tkn pipeline start pipeline-go --param repo_url=https://github.com/vdemeester/go-helloworld-app --param revision=main --param registry=docker.io/username -w name=source,emptyDir= +tkn pipeline start pipeline-go --param repo_url=https://github.com/vdemeester/go-helloworld-app --param revision=main --param registry=docker.io/username -w name=source,emptyDir= --use-param-defaults ``` or with a PipelineRun yaml object: @@ -72,9 +72,13 @@ spec: ```shell tkn pipeline start pipeline-go --param repo_url=https://github.com/chmouel/gosmee \ --param revision=main --param registry=docker.io/username \ - --param=buildCommand="make test" -w name=source,emptyDir= + --param=buildCommand="make test" -w name=source,emptyDir= --use-param-defaults --showlog ``` +- You can as well force the upload of the cache with param `force-cache-upload=true` (default: false) +- You can provide your own image with the param `image` (default to the latest docker.io `golang` image) +- You can provide your own patterns for the hash to computer with the `cachePatterns` array parameter (default to `go.mod,go.sum`) + ## License [Apache License 2.0](./LICENSE)