Skip to content

Commit

Permalink
standardize task and workspace names
Browse files Browse the repository at this point in the history
  • Loading branch information
lmilbaum committed Oct 4, 2024
1 parent 031df2b commit c9a22d7
Show file tree
Hide file tree
Showing 2 changed files with 338 additions and 38 deletions.
188 changes: 169 additions & 19 deletions .tekton/bootc-image-builder-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ spec:
- name: pipelinerun-name
value: $(context.pipelineRun.name)
- name: git-url
value: $(tasks.clone-repository.results.url)?rev=$(tasks.clone-repository.results.commit)
value: $(tasks.clone-repository-amd64.results.url)?rev=$(tasks.clone-repository-amd64.results.commit)
- name: image-url
value: $(params.output-image)
- name: build-task-status
Expand Down Expand Up @@ -130,10 +130,10 @@ spec:
value: $(tasks.build-container.results.IMAGE_DIGEST)
- description: ""
name: CHAINS-GIT_URL
value: $(tasks.clone-repository.results.url)
value: $(tasks.clone-repository-amd64.results.url)
- description: ""
name: CHAINS-GIT_COMMIT
value: $(tasks.clone-repository.results.commit)
value: $(tasks.clone-repository-amd64.results.commit)
- description: ""
name: JAVA_COMMUNITY_DEPENDENCIES
value: $(tasks.build-container-amd64.results.JAVA_COMMUNITY_DEPENDENCIES)
Expand Down Expand Up @@ -161,7 +161,7 @@ spec:
- name: kind
value: task
resolver: bundles
- name: clone-repository
- name: clone-repository-amd64
params:
- name: url
value: $(params.git-url)
Expand All @@ -185,7 +185,7 @@ spec:
- "true"
workspaces:
- name: output
workspace: workspace
workspace: workspace-amd64
- name: basic-auth
workspace: git-auth
- name: clone-repository-arm64
Expand Down Expand Up @@ -216,12 +216,112 @@ spec:
workspace: workspace-arm64
- name: basic-auth
workspace: git-auth
- name: prefetch-dependencies
- name: clone-repository-ppc64le
params:
- name: url
value: $(params.git-url)
- name: revision
value: $(params.revision)
runAfter:
- init
taskRef:
kind: Task
params:
- name: name
value: git-clone
- name: bundle
value: quay.io/redhat-appstudio-tekton-catalog/task-git-clone:0.1@sha256:9e6c4db5a666ea0e1e747e03d63f46e5617a6b9852c26871f9d50891d778dfa2
- name: kind
value: task
resolver: bundles
when:
- input: $(tasks.init.results.build)
operator: in
values:
- "true"
workspaces:
- name: output
workspace: workspace-ppc64le
- name: clone-repository-s390x
params:
- name: url
value: $(params.git-url)
- name: revision
value: $(params.revision)
runAfter:
- init
taskRef:
kind: Task
params:
- name: name
value: git-clone
- name: bundle
value: quay.io/redhat-appstudio-tekton-catalog/task-git-clone:0.1@sha256:9e6c4db5a666ea0e1e747e03d63f46e5617a6b9852c26871f9d50891d778dfa2
- name: kind
value: task
resolver: bundles
when:
- input: $(tasks.init.results.build)
operator: in
values:
- "true"
workspaces:
- name: output
workspace: workspace-s390x
- name: basic-auth
workspace: git-auth
- name: prefetch-dependencies-amd64
params:
- name: input
value: $(params.prefetch-input)
runAfter:
- clone-repository-amd64
taskRef:
params:
- name: name
value: prefetch-dependencies
- name: bundle
value: quay.io/redhat-appstudio-tekton-catalog/task-prefetch-dependencies:0.1@sha256:610ba9e81465fdc5456ed2846503c6cb6f38413d1211e5c63ba152fd1ff2c3ee
- name: kind
value: task
resolver: bundles
when:
- input: $(params.hermetic)
operator: in
values:
- "true"
workspaces:
- name: source
workspace: workspace-amd64
- name: prefetch-dependencies-arm64
params:
- name: input
value: $(params.prefetch-input)
runAfter:
- clone-repository-arm64
taskRef:
params:
- name: name
value: prefetch-dependencies
- name: bundle
value: quay.io/redhat-appstudio-tekton-catalog/task-prefetch-dependencies:0.1@sha256:610ba9e81465fdc5456ed2846503c6cb6f38413d1211e5c63ba152fd1ff2c3ee
- name: kind
value: task
resolver: bundles
when:
- input: $(params.hermetic)
operator: in
values:
- "true"
workspaces:
- name: source
workspace: workspace-arm64
- name: prefetch-dependencies-ppc64le
params:
- name: input
value: $(params.prefetch-input)
runAfter:
- clone-repository
- clone-repository-ppc64le
taskRef:
params:
- name: name
Expand All @@ -238,7 +338,30 @@ spec:
- "true"
workspaces:
- name: source
workspace: workspace
workspace: workspace-ppc64le
- name: prefetch-dependencies-s390x
params:
- name: input
value: $(params.prefetch-input)
runAfter:
- clone-repository-s390x
taskRef:
params:
- name: name
value: prefetch-dependencies
- name: bundle
value: quay.io/redhat-appstudio-tekton-catalog/task-prefetch-dependencies:0.1@sha256:610ba9e81465fdc5456ed2846503c6cb6f38413d1211e5c63ba152fd1ff2c3ee
- name: kind
value: task
resolver: bundles
when:
- input: $(params.hermetic)
operator: in
values:
- "true"
workspaces:
- name: source
workspace: workspace-s390x
- name: build-container-amd64
params:
- name: IMAGE
Expand All @@ -254,9 +377,9 @@ spec:
- name: IMAGE_EXPIRES_AFTER
value: $(params.image-expires-after)
- name: COMMIT_SHA
value: $(tasks.clone-repository.results.commit)
value: $(tasks.clone-repository-amd64.results.commit)
runAfter:
- prefetch-dependencies
- prefetch-dependencies-amd64
taskRef:
params:
- name: name
Expand All @@ -273,7 +396,7 @@ spec:
- "true"
workspaces:
- name: source
workspace: workspace
workspace: workspace-amd64
- name: build-container-arm64
params:
- name: IMAGE
Expand All @@ -289,11 +412,11 @@ spec:
- name: IMAGE_EXPIRES_AFTER
value: $(params.image-expires-after)
- name: COMMIT_SHA
value: $(tasks.clone-repository.results.commit)
value: $(tasks.clone-repository-arm64.results.commit)
- name: PLATFORM
value: linux/arm64
runAfter:
- clone-repository-arm64
- prefetch-dependencies-arm64
taskRef:
params:
- name: name
Expand All @@ -316,7 +439,7 @@ spec:
- name: IMAGE
value: $(params.output-image)
- name: COMMIT_SHA
value: $(tasks.clone-repository.results.commit)
value: $(tasks.clone-repository-amd64.results.commit)
- name: IMAGES
value:
- $(tasks.build-container-amd64.results.IMAGE_URL)@$(tasks.build-container-amd64.results.IMAGE_DIGEST)
Expand Down Expand Up @@ -362,7 +485,7 @@ spec:
- "false"
workspaces:
- name: source
workspace: workspace
workspace: workspace-amd64
- name: deprecated-base-image-check
params:
- name: IMAGE_URL
Expand Down Expand Up @@ -406,8 +529,13 @@ spec:
values:
- "false"
- name: sast-snyk-check
params:
- name: image-digest
value: $(tasks.build-container.results.IMAGE_DIGEST)
- name: image-url
value: $(tasks.build-container.results.IMAGE_URL)
runAfter:
- clone-repository
- build-container
taskRef:
params:
- name: name
Expand All @@ -424,7 +552,7 @@ spec:
- "false"
workspaces:
- name: workspace
workspace: workspace
workspace: workspace-amd64
- name: clamav-scan
params:
- name: image-digest
Expand Down Expand Up @@ -470,11 +598,11 @@ spec:
values:
- "false"
workspaces:
- name: workspace
- name: workspace-amd64
- name: git-auth
optional: true
workspaces:
- name: workspace
- name: workspace-amd64
volumeClaimTemplate:
metadata:
creationTimestamp: null
Expand All @@ -496,6 +624,28 @@ spec:
requests:
storage: 1Gi
status: {}
- name: workspace-ppc64le
volumeClaimTemplate:
metadata:
creationTimestamp: null
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
status: {}
- name: workspace-s390x
volumeClaimTemplate:
metadata:
creationTimestamp: null
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
status: {}
- name: git-auth
secret:
secretName: "{{ git_auth_secret }}"
Expand Down
Loading

0 comments on commit c9a22d7

Please sign in to comment.