1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-24 06:15:46 +00:00
catalog/task/shp/0.1
2024-05-17 13:04:33 +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 added Shipwright CLI task 2024-05-17 13:04:33 +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