diff --git a/.tekton/training-py311-cuda124-torch251-push.yaml b/.tekton/training-py311-cuda124-torch251-push.yaml index 975deda5..0c0efe65 100644 --- a/.tekton/training-py311-cuda124-torch251-push.yaml +++ b/.tekton/training-py311-cuda124-torch251-push.yaml @@ -6,10 +6,9 @@ metadata: build.appstudio.redhat.com/commit_sha: '{{revision}}' build.appstudio.redhat.com/target_branch: '{{target_branch}}' pipelinesascode.tekton.dev/max-keep-runs: "3" - pipelinesascode.tekton.dev/on-cel-expression: | - event == "push" - && target_branch == "main" - && ( "images/runtime/training/py311-cuda124-torch251/**".pathChanged() || ".tekton/training-py311-cuda124-torch251-push.yaml".pathChanged() ) + pipelinesascode.tekton.dev/on-cel-expression: "event == \"push\" \n&& target_branch + == \"main\" \n&& ( \"images/runtime/training/py311-cuda124-torch251/**\".pathChanged() + || \".tekton/training-py311-cuda124-torch251-push.yaml\".pathChanged() )\n" creationTimestamp: null labels: appstudio.openshift.io/application: runtime-training @@ -31,22 +30,6 @@ spec: value: Dockerfile - name: path-context value: images/runtime/training/py311-cuda124-torch251 - taskRunSpecs: - - pipelineTaskName: build-container - stepSpecs: - - name: build - computeResources: - requests: - memory: 10Gi - limits: - memory: 10Gi - - pipelineTaskName: prefetch-dependencies - computeResources: - requests: - cpu: '1' - memory: 2Gi - limits: - memory: 2Gi pipelineSpec: description: | This pipeline is ideal for building container images from a Containerfile while maintaining trust after pipeline customization. @@ -68,9 +51,9 @@ spec: value: task resolver: bundles params: - - name: additional-tag + - description: Additional fixed tag for the image + name: additional-tag type: string - description: Additional fixed tag for the image - description: Source Repository URL name: git-url type: string @@ -554,7 +537,7 @@ spec: value: $(tasks.build-image-index.results.IMAGE_URL) - name: ADDITIONAL_TAGS value: - - "$(params.additional-tag)" + - $(params.additional-tag) runAfter: - build-image-index taskRef: @@ -616,9 +599,26 @@ spec: optional: true - name: netrc optional: true - taskRunTemplate: {} + taskRunSpecs: + - pipelineTaskName: build-container + stepSpecs: + - computeResources: + limits: + memory: 10Gi + requests: + memory: 10Gi + name: build + - computeResources: + limits: + memory: 2Gi + requests: + cpu: "1" + memory: 2Gi + pipelineTaskName: prefetch-dependencies + taskRunTemplate: + serviceAccountName: build-pipeline-training-py311-cuda124-torch251 workspaces: - name: git-auth secret: secretName: '{{ git_auth_secret }}' -status: {} \ No newline at end of file +status: {}