Skip to content

Commit

Permalink
Use golang instead of bazel in catalog README 📎
Browse files Browse the repository at this point in the history
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 <vdemeest@redhat.com>
  • Loading branch information
vdemeester authored and tekton-robot committed Mar 4, 2020
1 parent 55033bb commit 04e06c7
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand All @@ -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:
Expand Down

0 comments on commit 04e06c7

Please sign in to comment.