apiVersion: tekton.dev/v1beta1 (1)
kind: Task (2)
metadata:
name: apply-manifests (3)
spec: (4)
params:
- default: k8s
description: The directory in source that contains yaml manifests
name: manifest_dir
type: string
steps:
- args:
- |-
echo Applying manifests in $(inputs.params.manifest_dir) directory
oc apply -f $(inputs.params.manifest_dir)
echo -----------------------------------
command:
- /bin/bash
- -c
image: quay.io/openshift/origin-cli:latest
name: apply
workingDir: /workspace/source
workspaces:
- name: source