mirror of
https://github.com/tektoncd/catalog.git
synced 2024-11-22 06:02:51 +00:00
24bf826a1d
Signed-off-by: vinamra28 <jvinamra776@gmail.com> |
||
---|---|---|
.. | ||
tests | ||
ko.yaml | ||
README.md |
ko
This Task builds source into a container image using ko.
Install the Task
kubectl apply -f https://api.hub.tekton.dev/v1/resource/tekton/task/ko/0.1/raw
Parameters
- ko-image: The ko image to use for builds (default:
ghcr.io/ko-build/ko:latest
) - main: The import path of package main (default:
.
) - extra-args: additional arguments to pass to ko build (default:
[]
) - KO_DOCKER_REPO: ko environment variable which identifies where to push images (default: ``)
- KO_DEFAULTBASEIMAGE: base image for ko build (default: ``)
Workspaces
- source: A Workspace containing the source to build.
- dockerconfig: Workspace including a docker "config.json". ko will use this authentication configured to push to the image registry.
Usage
This TaskRun runs the Task to build and push a container image using ko
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
name: example-run
spec:
taskRef:
name: ko
workspaces:
- name: source
persistentVolumeClaim:
claimName: my-source