1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-21 05:55:35 +00:00
catalog/task/shp/0.1
PuneetPunamiya 9d337900d4 Fix version in shp task
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>
2024-06-10 12:12:34 +01:00
..
samples added Shipwright CLI task 2024-05-17 13:04:33 +01:00
tests added Shipwright CLI task 2024-05-17 13:04:33 +01:00
OWNERS added Shipwright CLI task 2024-05-17 13:04:33 +01:00
README.md added Shipwright CLI task 2024-05-17 13:04:33 +01:00
shp.yaml Fix version in shp task 2024-06-10 12:12:34 +01:00

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 for shp to access the cluster. The file should be placed at the root of the Workspace with name kubeconfig.

Platforms

The Task can be run on linux/amd64

Usage

  1. Passing only ARGS
  tasks:
    - name: build
      taskRef:
        kind: Task
        name: shp
      params:
        - name: ARGS
            value:  
            - build 
            - run 
            - $(params.BUILD_NAME)
            - --follow

  1. Passing SCRIPT and ARGS and WORKSPACE

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