cluster.fun/tekton/tasks/kubectl-apply-files.yaml

15 lines
345 B
YAML
Raw Normal View History

2020-04-25 18:18:33 +00:00
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: kubectl-apply-files
namespace: tekton-pipelines
spec:
params:
- name: DIRECTORY
description: Directory of kubernetes manifest files
steps:
- name: kubectl-apply
image: gcr.io/cloud-builders/kubectl
script: |
kubectl apply --recursive -f $(params.DIRECTORY)