-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Red Hat Trusted App Pipeline update release-service-utils
- Loading branch information
red-hat-trusted-app-pipeline
committed
Oct 10, 2023
1 parent
6f80373
commit 7929714
Showing
2 changed files
with
775 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,389 @@ | ||
apiVersion: tekton.dev/v1beta1 | ||
kind: PipelineRun | ||
metadata: | ||
annotations: | ||
build.appstudio.openshift.io/repo: https://github.com/redhat-appstudio/release-service-utils?rev={{revision}} | ||
build.appstudio.redhat.com/commit_sha: '{{revision}}' | ||
build.appstudio.redhat.com/pull_request_number: '{{pull_request_number}}' | ||
build.appstudio.redhat.com/target_branch: '{{target_branch}}' | ||
pipelinesascode.tekton.dev/max-keep-runs: "3" | ||
pipelinesascode.tekton.dev/on-event: '[pull_request]' | ||
pipelinesascode.tekton.dev/on-target-branch: '[main]' | ||
creationTimestamp: null | ||
labels: | ||
appstudio.openshift.io/application: release-service | ||
appstudio.openshift.io/component: release-service-utils | ||
pipelines.appstudio.openshift.io/type: build | ||
name: release-service-utils-on-pull-request | ||
namespace: rhtap-release-2-tenant | ||
spec: | ||
params: | ||
- name: dockerfile | ||
value: Dockerfile | ||
- name: git-url | ||
value: '{{repo_url}}' | ||
- name: image-expires-after | ||
value: 5d | ||
- name: output-image | ||
value: quay.io/redhat-user-workloads/rhtap-release-2-tenant/release-service/release-service-utils:on-pr-{{revision}} | ||
- name: path-context | ||
value: . | ||
- name: revision | ||
value: '{{revision}}' | ||
pipelineSpec: | ||
finally: | ||
- name: show-sbom | ||
params: | ||
- name: IMAGE_URL | ||
value: $(tasks.build-container.results.IMAGE_URL) | ||
taskRef: | ||
params: | ||
- name: name | ||
value: show-sbom | ||
- name: bundle | ||
value: quay.io/redhat-appstudio-tekton-catalog/task-show-sbom:0.1@sha256:7db0af43dcebaeb33e34413148370e17078c30fd2fc78fb84c8941b444199f36 | ||
- name: kind | ||
value: task | ||
resolver: bundles | ||
- name: show-summary | ||
params: | ||
- name: pipelinerun-name | ||
value: $(context.pipelineRun.name) | ||
- name: git-url | ||
value: $(tasks.clone-repository.results.url)?rev=$(tasks.clone-repository.results.commit) | ||
- name: image-url | ||
value: $(params.output-image) | ||
- name: build-task-status | ||
value: $(tasks.build-container.status) | ||
taskRef: | ||
params: | ||
- name: name | ||
value: summary | ||
- name: bundle | ||
value: quay.io/redhat-appstudio-tekton-catalog/task-summary:0.1@sha256:9d43202379cb83358942ce2e936c0297e30faaa0c73811324318c6260a6edc25 | ||
- name: kind | ||
value: task | ||
resolver: bundles | ||
params: | ||
- description: Source Repository URL | ||
name: git-url | ||
type: string | ||
- default: "" | ||
description: Revision of the Source Repository | ||
name: revision | ||
type: string | ||
- description: Fully Qualified Output Image | ||
name: output-image | ||
type: string | ||
- default: . | ||
description: Path to the source code of an application's component from where | ||
to build image. | ||
name: path-context | ||
type: string | ||
- default: Dockerfile | ||
description: Path to the Dockerfile inside the context specified by parameter | ||
path-context | ||
name: dockerfile | ||
type: string | ||
- default: "false" | ||
description: Force rebuild image | ||
name: rebuild | ||
type: string | ||
- default: "false" | ||
description: Skip checks against built image | ||
name: skip-checks | ||
type: string | ||
- default: "true" | ||
description: Skip optional checks, set false if you want to run optional checks | ||
name: skip-optional | ||
type: string | ||
- default: "false" | ||
description: Execute the build with network isolation | ||
name: hermetic | ||
type: string | ||
- default: "" | ||
description: Build dependencies to be prefetched by Cachi2 | ||
name: prefetch-input | ||
type: string | ||
- default: "false" | ||
description: Java build | ||
name: java | ||
type: string | ||
- default: "" | ||
description: Image tag expiration time, time values could be something like | ||
1h, 2d, 3w for hours, days, and weeks, respectively. | ||
name: image-expires-after | ||
results: | ||
- description: "" | ||
name: IMAGE_URL | ||
value: $(tasks.build-container.results.IMAGE_URL) | ||
- description: "" | ||
name: IMAGE_DIGEST | ||
value: $(tasks.build-container.results.IMAGE_DIGEST) | ||
- description: "" | ||
name: CHAINS-GIT_URL | ||
value: $(tasks.clone-repository.results.url) | ||
- description: "" | ||
name: CHAINS-GIT_COMMIT | ||
value: $(tasks.clone-repository.results.commit) | ||
- description: "" | ||
name: JAVA_COMMUNITY_DEPENDENCIES | ||
value: $(tasks.build-container.results.JAVA_COMMUNITY_DEPENDENCIES) | ||
tasks: | ||
- name: init | ||
params: | ||
- name: image-url | ||
value: $(params.output-image) | ||
- name: rebuild | ||
value: $(params.rebuild) | ||
- name: skip-checks | ||
value: $(params.skip-checks) | ||
- name: skip-optional | ||
value: $(params.skip-optional) | ||
- name: pipelinerun-name | ||
value: $(context.pipelineRun.name) | ||
- name: pipelinerun-uid | ||
value: $(context.pipelineRun.uid) | ||
taskRef: | ||
params: | ||
- name: name | ||
value: init | ||
- name: bundle | ||
value: quay.io/redhat-appstudio-tekton-catalog/task-init:0.1@sha256:26586a7ef08c3e86dfdaf0a5cc38dd3d70c4c02db1331b469caaed0a0f5b3d86 | ||
- name: kind | ||
value: task | ||
resolver: bundles | ||
- name: clone-repository | ||
params: | ||
- name: url | ||
value: $(params.git-url) | ||
- name: revision | ||
value: $(params.revision) | ||
runAfter: | ||
- init | ||
taskRef: | ||
params: | ||
- name: name | ||
value: git-clone | ||
- name: bundle | ||
value: quay.io/redhat-appstudio-tekton-catalog/task-git-clone:0.1@sha256:1f84973a21aabea38434b1f663abc4cb2d86565a9c7aae1f90decb43a8fa48eb | ||
- name: kind | ||
value: task | ||
resolver: bundles | ||
when: | ||
- input: $(tasks.init.results.build) | ||
operator: in | ||
values: | ||
- "true" | ||
workspaces: | ||
- name: output | ||
workspace: workspace | ||
- name: basic-auth | ||
workspace: git-auth | ||
- name: prefetch-dependencies | ||
params: | ||
- name: input | ||
value: $(params.prefetch-input) | ||
runAfter: | ||
- clone-repository | ||
taskRef: | ||
params: | ||
- name: name | ||
value: prefetch-dependencies | ||
- name: bundle | ||
value: quay.io/redhat-appstudio-tekton-catalog/task-prefetch-dependencies:0.1@sha256:c7b7f13d5d2a1545e95c2d56521327001d56ba54645900db41aa414607eff1e5 | ||
- name: kind | ||
value: task | ||
resolver: bundles | ||
when: | ||
- input: $(params.hermetic) | ||
operator: in | ||
values: | ||
- "true" | ||
workspaces: | ||
- name: source | ||
workspace: workspace | ||
- name: build-container | ||
params: | ||
- name: IMAGE | ||
value: $(params.output-image) | ||
- name: DOCKERFILE | ||
value: $(params.dockerfile) | ||
- name: CONTEXT | ||
value: $(params.path-context) | ||
- name: HERMETIC | ||
value: $(params.hermetic) | ||
- name: PREFETCH_INPUT | ||
value: $(params.prefetch-input) | ||
- name: IMAGE_EXPIRES_AFTER | ||
value: $(params.image-expires-after) | ||
- name: COMMIT_SHA | ||
value: $(tasks.clone-repository.results.commit) | ||
runAfter: | ||
- prefetch-dependencies | ||
taskRef: | ||
params: | ||
- name: name | ||
value: buildah | ||
- name: bundle | ||
value: quay.io/redhat-appstudio-tekton-catalog/task-buildah:0.1@sha256:3ab862223beab868839476ed455b2530043ff8ce4453eb4618ab37c137bfe2d8 | ||
- name: kind | ||
value: task | ||
resolver: bundles | ||
when: | ||
- input: $(tasks.init.results.build) | ||
operator: in | ||
values: | ||
- "true" | ||
workspaces: | ||
- name: source | ||
workspace: workspace | ||
- name: inspect-image | ||
params: | ||
- name: IMAGE_URL | ||
value: $(tasks.build-container.results.IMAGE_URL) | ||
- name: IMAGE_DIGEST | ||
value: $(tasks.build-container.results.IMAGE_DIGEST) | ||
runAfter: | ||
- build-container | ||
taskRef: | ||
params: | ||
- name: name | ||
value: inspect-image | ||
- name: bundle | ||
value: quay.io/redhat-appstudio-tekton-catalog/task-inspect-image:0.1@sha256:7880c08c67e81f22d3de1d012905e5c9d333108188ceaea60b3a4c3857c2c4b7 | ||
- name: kind | ||
value: task | ||
resolver: bundles | ||
when: | ||
- input: $(params.skip-checks) | ||
operator: in | ||
values: | ||
- "false" | ||
workspaces: | ||
- name: source | ||
workspace: workspace | ||
- name: deprecated-base-image-check | ||
params: | ||
- name: BASE_IMAGES_DIGESTS | ||
value: $(tasks.build-container.results.BASE_IMAGES_DIGESTS) | ||
taskRef: | ||
params: | ||
- name: name | ||
value: deprecated-image-check | ||
- name: bundle | ||
value: quay.io/redhat-appstudio-tekton-catalog/task-deprecated-image-check:0.3@sha256:6df3f9a88242224048837a69e269d640799e7ee83984880ba2f57d8b0155990e | ||
- name: kind | ||
value: task | ||
resolver: bundles | ||
when: | ||
- input: $(params.skip-checks) | ||
operator: in | ||
values: | ||
- "false" | ||
- name: clair-scan | ||
params: | ||
- name: image-digest | ||
value: $(tasks.build-container.results.IMAGE_DIGEST) | ||
- name: image-url | ||
value: $(tasks.build-container.results.IMAGE_URL) | ||
runAfter: | ||
- build-container | ||
taskRef: | ||
params: | ||
- name: name | ||
value: clair-scan | ||
- name: bundle | ||
value: quay.io/redhat-appstudio-tekton-catalog/task-clair-scan:0.1@sha256:4d8588502c3265cca7c43f131d77661f9254b4b12e5af0cf093afcc464bfb850 | ||
- name: kind | ||
value: task | ||
resolver: bundles | ||
when: | ||
- input: $(params.skip-checks) | ||
operator: in | ||
values: | ||
- "false" | ||
- name: sast-snyk-check | ||
runAfter: | ||
- clone-repository | ||
taskRef: | ||
params: | ||
- name: name | ||
value: sast-snyk-check | ||
- name: bundle | ||
value: quay.io/redhat-appstudio-tekton-catalog/task-sast-snyk-check:0.1@sha256:ce73b27a7a345a99ff88a730388d938243678af42704da8db69387bdf547b8ad | ||
- name: kind | ||
value: task | ||
resolver: bundles | ||
when: | ||
- input: $(params.skip-checks) | ||
operator: in | ||
values: | ||
- "false" | ||
workspaces: | ||
- name: workspace | ||
workspace: workspace | ||
- name: clamav-scan | ||
params: | ||
- name: image-digest | ||
value: $(tasks.build-container.results.IMAGE_DIGEST) | ||
- name: image-url | ||
value: $(tasks.build-container.results.IMAGE_URL) | ||
runAfter: | ||
- build-container | ||
taskRef: | ||
params: | ||
- name: name | ||
value: clamav-scan | ||
- name: bundle | ||
value: quay.io/redhat-appstudio-tekton-catalog/task-clamav-scan:0.1@sha256:884697be1f7377a5b680aa79629d183c541277badeac13573d497233986ebfb7 | ||
- name: kind | ||
value: task | ||
resolver: bundles | ||
when: | ||
- input: $(params.skip-checks) | ||
operator: in | ||
values: | ||
- "false" | ||
- name: sbom-json-check | ||
params: | ||
- name: IMAGE_URL | ||
value: $(tasks.build-container.results.IMAGE_URL) | ||
- name: IMAGE_DIGEST | ||
value: $(tasks.build-container.results.IMAGE_DIGEST) | ||
runAfter: | ||
- build-container | ||
taskRef: | ||
params: | ||
- name: name | ||
value: sbom-json-check | ||
- name: bundle | ||
value: quay.io/redhat-appstudio-tekton-catalog/task-sbom-json-check:0.1@sha256:d8d114daa23c299aefecc9b5c8440f6cf3106635c92788b56208b41358e8f819 | ||
- name: kind | ||
value: task | ||
resolver: bundles | ||
when: | ||
- input: $(params.skip-checks) | ||
operator: in | ||
values: | ||
- "false" | ||
workspaces: | ||
- name: workspace | ||
- name: git-auth | ||
optional: true | ||
workspaces: | ||
- name: workspace | ||
volumeClaimTemplate: | ||
metadata: | ||
creationTimestamp: null | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
status: {} | ||
- name: git-auth | ||
secret: | ||
secretName: '{{ git_auth_secret }}' | ||
status: {} |
Oops, something went wrong.