This commit is contained in:
2024-04-22 17:11:52 +02:00
parent 5d7234ffd3
commit aa63ce8451
3 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
apiVersion: tekton.dev/v1
kind: Task
metadata:
name: auto-ci-cleanup
spec:
params:
- name: toolbox-image
default: sebt3/basic-toolbox-image:1.30.0
description: The name of the toolbox image
type: string
steps:
- name: cleanup
image: $(params.toolbox-image)
workingDir: $(workspaces.source.path)
script: |-
#!/usr/bin/env ash
rm -rf . || true
workspaces:
- name: source
mountPath: /data