Files
domain/share/gitea-tekton-org/tekton.dev_v1_Task_auto-ci-cleanup.yaml
2024-04-23 14:03:07 +02:00

20 lines
467 B
YAML

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