Skip to content

Commit

Permalink
Try to add task
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-farache committed Oct 22, 2024
1 parent da48fc6 commit 2384275
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .tekton/mta-serverless-workflow-pull-request.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
---
apiVersion: tekton.dev/v1
kind: Task
metadata:
name: copy
namespace: orchestrator-releng-tenant
spec:
workspaces:
- name: workspace
params:
- name: workflowId
description: The workflow ID from the repository
type: string
steps:
- name: copy
image: registry.access.redhat.com/ubi9-minimal
workingDir: $(workspaces.workspace.path)
script: |
ls -al .
ls -al $(params.workflowId)
---
apiVersion: tekton.dev/v1
kind: PipelineRun
metadata:
Expand Down Expand Up @@ -206,6 +228,22 @@ spec:
workspace: workspace
- name: git-basic-auth
workspace: git-auth
- name: copy-shared
runAfter:
- clone-repository
taskRef:
name: copy
params:
- name: workflowId
value: $(params.path-context)
when:
- input: $(params.hermetic)
operator: in
values:
- "true"
workspaces:
- name: source
workspace: workspace
- name: build-container
params:
- name: IMAGE
Expand All @@ -226,6 +264,7 @@ spec:
value: $(params.build-args-file)
runAfter:
- prefetch-dependencies
- copy-shared
taskRef:
params:
- name: name
Expand Down

0 comments on commit 2384275

Please sign in to comment.