fix
This commit is contained in:
@@ -29,6 +29,11 @@ spec:
|
|||||||
- name: branch-name
|
- name: branch-name
|
||||||
type: string
|
type: string
|
||||||
finally:
|
finally:
|
||||||
|
- name: cleanup
|
||||||
|
taskRef:
|
||||||
|
name: auto-ci-cleaup
|
||||||
|
workspaces:
|
||||||
|
- name: source
|
||||||
- name: inform-gitea-success
|
- name: inform-gitea-success
|
||||||
when:
|
when:
|
||||||
- cel: "'$(tasks.status)' in ['Succeeded','Completed']"
|
- cel: "'$(tasks.status)' in ['Succeeded','Completed']"
|
||||||
|
|||||||
@@ -26,6 +26,11 @@ spec:
|
|||||||
- name: tag-name
|
- name: tag-name
|
||||||
type: string
|
type: string
|
||||||
finally:
|
finally:
|
||||||
|
- name: cleanup
|
||||||
|
taskRef:
|
||||||
|
name: auto-ci-cleaup
|
||||||
|
workspaces:
|
||||||
|
- name: source
|
||||||
- name: inform-gitea-success
|
- name: inform-gitea-success
|
||||||
when:
|
when:
|
||||||
- cel: "'$(tasks.status)' in ['Succeeded','Completed']"
|
- cel: "'$(tasks.status)' in ['Succeeded','Completed']"
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user