-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from ralphbean/appstudio-hacbs-probe-payload-oi6f
Appstudio update hacbs-probe-payload-oi6f
- Loading branch information
Showing
2 changed files
with
675 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,338 @@ | ||
apiVersion: tekton.dev/v1beta1 | ||
kind: PipelineRun | ||
metadata: | ||
annotations: | ||
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,master]' | ||
creationTimestamp: null | ||
labels: | ||
appstudio.openshift.io/application: ralphtest | ||
appstudio.openshift.io/component: hacbs-probe-payload-oi6f | ||
pipelines.appstudio.openshift.io/type: build | ||
name: hacbs-probe-payload-oi6f-on-pull-request | ||
namespace: ralphjbean-tenant | ||
spec: | ||
params: | ||
- name: dockerfile | ||
value: Dockerfile | ||
- name: git-url | ||
value: '{{repo_url}}' | ||
- name: output-image | ||
value: quay.io/redhat-appstudio/user-workload:on-pr-{{revision}} | ||
- name: path-context | ||
value: . | ||
- name: revision | ||
value: '{{revision}}' | ||
pipelineSpec: | ||
finally: | ||
- name: show-summary | ||
params: | ||
- name: pipeline-run-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) | ||
taskRef: | ||
bundle: quay.io/redhat-appstudio-tekton-catalog/task-summary:0.1@sha256:245f5017f0a58840212cfd2de0a50844f78b2b2c74976289f34b238bdaa700e5 | ||
name: summary | ||
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: The path to your source code | ||
name: path-context | ||
type: string | ||
- default: Dockerfile | ||
description: Path to the Dockerfile | ||
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: "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 | ||
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: appstudio-init | ||
params: | ||
- name: image-url | ||
value: $(params.output-image) | ||
- name: rebuild | ||
value: $(params.rebuild) | ||
- name: skip-checks | ||
value: $(params.skip-checks) | ||
- name: pipeline-run-name | ||
value: $(context.pipelineRun.name) | ||
taskRef: | ||
bundle: quay.io/redhat-appstudio-tekton-catalog/task-init:0.1@sha256:f9e8e66798d02afee87ff13c8d5a0d4bb2667c05a7010fbd286a4afa319c7323 | ||
name: init | ||
- name: clone-repository | ||
params: | ||
- name: url | ||
value: $(params.git-url) | ||
- name: revision | ||
value: $(params.revision) | ||
runAfter: | ||
- appstudio-init | ||
taskRef: | ||
bundle: quay.io/redhat-appstudio-tekton-catalog/task-git-clone:0.1@sha256:f4e37778cba00296606ddfbc1c58181330899cafcaa1ee41c75a7cf8bed312f0 | ||
name: git-clone | ||
when: | ||
- input: $(tasks.appstudio-init.results.build) | ||
operator: in | ||
values: | ||
- "true" | ||
workspaces: | ||
- name: output | ||
workspace: workspace | ||
- name: basic-auth | ||
workspace: git-auth | ||
- name: appstudio-configure-build | ||
runAfter: | ||
- clone-repository | ||
taskRef: | ||
bundle: quay.io/redhat-appstudio-tekton-catalog/task-configure-build:0.1@sha256:787d29329a2ea1b618ddf0ec4cb208d7f3dbc5c969c6e61ea920fb063b09a477 | ||
name: configure-build | ||
when: | ||
- input: $(tasks.appstudio-init.results.build) | ||
operator: in | ||
values: | ||
- "true" | ||
workspaces: | ||
- name: source | ||
workspace: workspace | ||
- name: prefetch-dependencies | ||
params: | ||
- name: input | ||
value: $(params.prefetch-input) | ||
runAfter: | ||
- appstudio-configure-build | ||
taskRef: | ||
bundle: quay.io/redhat-appstudio-tekton-catalog/task-prefetch-dependencies:0.1@sha256:d2f044dc2b9646007c6ae7298fac50971a7a2460e933980313fd689c76226233 | ||
name: prefetch-dependencies | ||
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: BUILD_EXTRA_ARGS | ||
value: $(tasks.appstudio-configure-build.results.buildah-auth-param) | ||
- name: PUSH_EXTRA_ARGS | ||
value: $(tasks.appstudio-configure-build.results.buildah-auth-param) | ||
- name: HERMETIC | ||
value: $(params.hermetic) | ||
- name: PREFETCH_INPUT | ||
value: $(params.prefetch-input) | ||
runAfter: | ||
- prefetch-dependencies | ||
taskRef: | ||
bundle: quay.io/redhat-appstudio-tekton-catalog/task-buildah:0.1@sha256:b4a1cf097be6b9c411ad3a1fdb4a48e598f92fce01627c4f5f0d85ee28767784 | ||
name: buildah | ||
when: | ||
- input: $(tasks.appstudio-init.results.build) | ||
operator: in | ||
values: | ||
- "true" | ||
workspaces: | ||
- name: source | ||
workspace: workspace | ||
- name: sanity-inspect-image | ||
params: | ||
- name: IMAGE_URL | ||
value: $(tasks.build-container.results.IMAGE_URL)@$(tasks.build-container.results.IMAGE_DIGEST) | ||
runAfter: | ||
- build-container | ||
taskRef: | ||
bundle: quay.io/redhat-appstudio-tekton-catalog/task-sanity-inspect-image:0.1@sha256:1ff8cea8259a415a7ca6de7d47ade692813721653f89166f549e732cecaf2dcf | ||
name: sanity-inspect-image | ||
when: | ||
- input: $(params.skip-checks) | ||
operator: in | ||
values: | ||
- "false" | ||
workspaces: | ||
- name: workspace | ||
workspace: workspace | ||
- name: sanity-label-check | ||
runAfter: | ||
- sanity-inspect-image | ||
taskRef: | ||
bundle: quay.io/redhat-appstudio-tekton-catalog/task-sanity-label-check:0.1@sha256:710e07f1e38d93ac740b056c4bd7a962df5ad1b09cece5923fae0fde47f9fa76 | ||
name: sanity-label-check | ||
when: | ||
- input: $(params.skip-checks) | ||
operator: in | ||
values: | ||
- "false" | ||
workspaces: | ||
- name: workspace | ||
workspace: workspace | ||
- name: sanity-optional-label-check | ||
params: | ||
- name: POLICY_NAMESPACE | ||
value: optional_checks | ||
runAfter: | ||
- sanity-inspect-image | ||
taskRef: | ||
bundle: quay.io/redhat-appstudio-tekton-catalog/task-sanity-label-check:0.1@sha256:710e07f1e38d93ac740b056c4bd7a962df5ad1b09cece5923fae0fde47f9fa76 | ||
name: sanity-label-check | ||
when: | ||
- input: $(params.skip-checks) | ||
operator: in | ||
values: | ||
- "false" | ||
workspaces: | ||
- name: workspace | ||
workspace: workspace | ||
- name: deprecated-base-image-check | ||
params: | ||
- name: BASE_IMAGES_DIGESTS | ||
value: $(tasks.build-container.results.BASE_IMAGES_DIGESTS) | ||
taskRef: | ||
bundle: quay.io/redhat-appstudio-tekton-catalog/task-deprecated-image-check:0.1@sha256:268fd657c069d12b6b24d8e02ce6f0330e2a02e53dce787724445591a90682cd | ||
name: deprecated-image-check | ||
when: | ||
- input: $(params.skip-checks) | ||
operator: in | ||
values: | ||
- "false" | ||
workspaces: | ||
- name: sanity-ws | ||
workspace: workspace | ||
- 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: | ||
bundle: quay.io/redhat-appstudio-tekton-catalog/task-clair-scan:0.1@sha256:10b191f72ca767c787f0d7f66f46f5ad3117123ee185e8c57b73667358a7b3a6 | ||
name: clair-scan | ||
when: | ||
- input: $(params.skip-checks) | ||
operator: in | ||
values: | ||
- "false" | ||
- name: sast-snyk-check | ||
runAfter: | ||
- clone-repository | ||
taskRef: | ||
bundle: quay.io/redhat-appstudio-tekton-catalog/task-sast-snyk-check:0.1@sha256:e4986a1fdf0a7dbb96514fcbe68267d82ee42676c246fd33af19740f966aed00 | ||
name: sast-snyk-check | ||
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: | ||
bundle: quay.io/redhat-appstudio-tekton-catalog/task-clamav-scan:0.1@sha256:2e19ce2503a8471878fe070364066328e4f2912205ee4aaaf9d66a30037d1cb7 | ||
name: clamav-scan | ||
when: | ||
- input: $(params.skip-checks) | ||
operator: in | ||
values: | ||
- "false" | ||
- name: sbom-json-check | ||
params: | ||
- name: IMAGE_URL | ||
value: $(tasks.build-container.results.IMAGE_URL) | ||
runAfter: | ||
- build-container | ||
taskRef: | ||
bundle: quay.io/redhat-appstudio-tekton-catalog/task-sbom-json-check:0.1@sha256:631b875a9e265d48a1f00d21e51560c175bc7aafb4358b6525785d4ecc685d69 | ||
name: sbom-json-check | ||
when: | ||
- input: $(params.skip-checks) | ||
operator: in | ||
values: | ||
- "false" | ||
workspaces: | ||
- name: workspace | ||
workspace: workspace | ||
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.