Files
kubernetes/dev/tekton/tasks/cleanup-workspace.yaml
T
2026-05-31 16:07:30 +02:00

17 lines
327 B
YAML

apiVersion: tekton.dev/v1
kind: Task
metadata:
name: cleanup-workspace
spec:
workspaces:
- name: source
steps:
- name: cleanup
image: alpine:3.22
script: |
#!/bin/sh
set -eu
echo "Cleaning workspace..."
find /workspace/source -mindepth 1 -maxdepth 1 -exec rm -rf {} +