25 lines
410 B
YAML

apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: cleanup-workspace
spec:
workspaces:
- name: source
steps:
- name: cleanup
image: alpine:latest
command:
- /bin/sh
args:
- '-c'
- |
#set -e
echo ""
echo "== CLEAN UP WORKSPACES ==================================="
rm -rf /workspace/*
echo ""
echo ""