mirror of
https://github.com/tektoncd/catalog.git
synced 2024-11-21 05:55:35 +00:00
9d337900d4
As per the TEP (https://github.com/tektoncd/community/blob/main/teps/0003-tekton-catalog-organization.md) the version was not correct in the yaml of the `shp` task and hence the yaml is not getting showed on Tekton Hub UI Hence this patch fixes the version for the task Signed-off-by: PuneetPunamiya <ppunamiy@redhat.com> |
||
---|---|---|
.. | ||
samples | ||
tests | ||
OWNERS | ||
README.md | ||
shp.yaml |
Shipwright CLI
This task performs operations on Shipwright Builds using the CLI shp
.
Install the Task
kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/main/task/shp/0.1/shp.yaml
Parameters
name | description | default |
---|---|---|
SHP_IMAGE | shp CLI container image to run this task. |
quay.io/shipwright/cli:0.12 |
ARGS | The arguments to pass to the shp CLI. |
--help |
SCRIPT | shp CLI script to execute |
shp \$@ |
Workspaces
- kubeconfig: An optional workspace that allows you to provide a
.kube/config
file forshp
to access the cluster. The file should be placed at the root of the Workspace with namekubeconfig
.
Platforms
The Task can be run on linux/amd64
Usage
- Passing only
ARGS
tasks:
- name: build
taskRef:
kind: Task
name: shp
params:
- name: ARGS
value:
- build
- run
- $(params.BUILD_NAME)
- --follow
- Passing
SCRIPT
andARGS
andWORKSPACE
Sample secret can be found here
tasks:
- name: build
params:
- name: SCRIPT
value: |
shp build run $(params.BUILD_NAME) --follow
taskRef:
kind: Task
name: shp
workspaces:
- name: kubeconfig
secret:
secretName: kubeconfig-secret