From 23842753253a932367cc4d374c92b3a873e73e2b Mon Sep 17 00:00:00 2001 From: gabriel-farache Date: Tue, 22 Oct 2024 16:04:27 +0200 Subject: [PATCH] Try to add task --- .../mta-serverless-workflow-pull-request.yaml | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/.tekton/mta-serverless-workflow-pull-request.yaml b/.tekton/mta-serverless-workflow-pull-request.yaml index 5d242769..049fb870 100644 --- a/.tekton/mta-serverless-workflow-pull-request.yaml +++ b/.tekton/mta-serverless-workflow-pull-request.yaml @@ -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: @@ -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 @@ -226,6 +264,7 @@ spec: value: $(params.build-args-file) runAfter: - prefetch-dependencies + - copy-shared taskRef: params: - name: name