From 04e06c76e48a5247f18e133e11bd1396fff1b88d Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Wed, 4 Mar 2020 16:23:34 +0100 Subject: [PATCH] =?UTF-8?q?Use=20golang=20instead=20of=20bazel=20in=20cata?= =?UTF-8?q?log=20README=20=F0=9F=93=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We don't have a `bazel` task in the catalog. Switch to use `golang-build` with `tektoncd/pipeline` as source. Signed-off-by: Vincent Demeester --- README.md | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 7c53480e0b..0dc91ab69d 100644 --- a/README.md +++ b/README.md @@ -26,24 +26,16 @@ There are two kinds of `Task`s: First, install a `Task` onto your cluster: ``` -$ kubectl apply -f bazel.yaml -task.tekton.dev/bazel created +$ kubectl apply -f golang/build.yaml +task.tekton.dev/golang-build created ``` You can see which `Task`s are installed using `kubectl` as well: ``` $ kubectl get tasks -NAME AGE -bazel 3s -``` - -*OR* - -``` -$ kubectl get clustertasks -NAME AGE -cluster-bazel 3s +NAME AGE +golang-build 3s ``` With the `Task` installed, you can define a `TaskRun` that runs that `Task`, @@ -56,18 +48,18 @@ metadata: name: example-run spec: taskRef: - name: bazel + name: golang-build inputs: params: - - name: TARGET - value: //path/to/image:publish + - name: package + value: github.com/tektoncd/pipeline resources: - name: source resourceSpec: type: git params: - name: url - value: https://github.com/my-user/my-repo + value: https://github.com/tektoncd/pipeline ``` Next, create the `TaskRun` you defined: