Something went wrong. Try again.
Xe's custom tekton tasks
Something went wrong. Try again.
README.md
ko #
This Task builds source into a container image using ko.
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