mirror of
https://github.com/tektoncd/catalog.git
synced 2024-11-24 06:15:46 +00:00
.. | ||
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