From 4dcea89b02ec79781bc4e0085da82a1c6cab75ab Mon Sep 17 00:00:00 2001 From: cmoulliard <463790+cmoulliard@users.noreply.github.com> Date: Fri, 9 Aug 2024 14:24:47 +0000 Subject: [PATCH] [create-pull-request] automated change --- SCENARIO.md | 51 +++++++++++++++---- .../build/pipelinerun-my-quarkus-1.yaml | 10 ++-- .../buildpack/pipeline-buildpack-builder.yaml | 6 +-- .../pipelinerun-pack-builder-push.yaml | 30 ++++++++++- 4 files changed, 78 insertions(+), 19 deletions(-) diff --git a/SCENARIO.md b/SCENARIO.md index 93f744a..093780d 100644 --- a/SCENARIO.md +++ b/SCENARIO.md @@ -48,15 +48,15 @@ apiVersion: "tekton.dev/v1" kind: "PipelineRun" metadata: annotations: - build.appstudio.openshift.io/repo: "https://github.com/ch007m/new-quarkus-app-1?rev={{revision}}" - pipelinesascode.tekton.dev/max-keep-runs: "3" - build.appstudio.redhat.com/commit_sha: "{{revision}}" - build.appstudio.redhat.com/target_branch: "{{target_branch}}" pipelinesascode.tekton.dev/on-cel-expression: "event == 'push' && target_branch\ \ == 'main'" + build.appstudio.redhat.com/target_branch: "{{target_branch}}" + build.appstudio.redhat.com/commit_sha: "{{revision}}" + pipelinesascode.tekton.dev/max-keep-runs: "3" + build.appstudio.openshift.io/repo: "https://github.com/ch007m/new-quarkus-app-1?rev={{revision}}" labels: - pipelines.openshift.io/strategy: "build" pipelines.openshift.io/runtime: "java" + pipelines.openshift.io/strategy: "build" pipelines.openshift.io/used-by: "build-cloud" name: "my-quarkus-1" spec: @@ -441,16 +441,16 @@ apiVersion: "tekton.dev/v1" kind: "Pipeline" metadata: annotations: + pipelinesascode.tekton.dev/max-keep-runs: "3" + build.appstudio.openshift.io/repo: "https://github.com/paketo-community/builder-ubi-base?rev={{revision}}" pipelinesascode.tekton.dev/on-cel-expression: "event == 'push' && target_branch\ \ == 'main'" build.appstudio.redhat.com/target_branch: "{{target_branch}}" build.appstudio.redhat.com/commit_sha: "{{revision}}" - pipelinesascode.tekton.dev/max-keep-runs: "3" - build.appstudio.openshift.io/repo: "https://github.com/paketo-community/builder-ubi-base?rev={{revision}}" labels: + pipelines.openshift.io/used-by: "build-cloud" pipelines.openshift.io/runtime: "java" pipelines.openshift.io/strategy: "buildpack" - pipelines.openshift.io/used-by: "build-cloud" name: "buildpack-builder" spec: finally: @@ -840,7 +840,7 @@ job: - packCmdBuilderFlags: - -v - --publish - # All to workspaces will be mounted for each action except when the action overrides them + # The workspaces declared here will be mounted for each action except if an action overrides it to use a different name workspaces: - name: pack-workspace volumeClaimTemplate: @@ -860,6 +860,9 @@ job: params: - url: "$(params.git-url)" - subdirectory: "." + workspaces: + - name: output + workspace: source-dir - name: fetch-packconfig-registrysecret ref: bundle://quay.io/ch007m/tekton-bundle:latest@sha256:af13b94347457df001742f8449de9edb381e90b0d174da598ddd15cf493e340f - name: list-source-workspace @@ -886,9 +889,9 @@ apiVersion: "tekton.dev/v1" kind: "PipelineRun" metadata: annotations: + tekton.dev/displayName: "This Pipeline builds a builder image using the pack CLI." tekton.dev/platforms: "linux/amd64" tekton.dev/pipelines.minVersion: "0.40.0" - tekton.dev/displayName: "This Pipeline builds a builder image using the pack CLI." labels: app.kubernetes.io/version: "0.2" name: "pack-builder-push" @@ -920,6 +923,13 @@ spec: - name: "kind" value: "task" resolver: "bundles" + workspaces: + - name: "pack-workspace" + workspace: "pack-workspace" + - name: "data-store" + workspace: "data-store" + - name: "output" + workspace: "source-dir" - name: "fetch-packconfig-registrysecret" taskRef: params: @@ -930,6 +940,13 @@ spec: - name: "kind" value: "task" resolver: "bundles" + workspaces: + - name: "pack-workspace" + workspace: "pack-workspace" + - name: "source-dir" + workspace: "source-dir" + - name: "data-store" + workspace: "data-store" - name: "list-source-workspace" taskRef: params: @@ -940,6 +957,13 @@ spec: - name: "kind" value: "task" resolver: "bundles" + workspaces: + - name: "pack-workspace" + workspace: "pack-workspace" + - name: "source-dir" + workspace: "source-dir" + - name: "data-store" + workspace: "data-store" - name: "pack-builder" taskRef: params: @@ -950,6 +974,13 @@ spec: - name: "kind" value: "task" resolver: "bundles" + workspaces: + - name: "pack-workspace" + workspace: "pack-workspace" + - name: "source-dir" + workspace: "source-dir" + - name: "data-store" + workspace: "data-store" workspaces: - name: "pack-workspace" volumeClaimTemplate: diff --git a/generated/konflux/build/pipelinerun-my-quarkus-1.yaml b/generated/konflux/build/pipelinerun-my-quarkus-1.yaml index 1d0a002..ca82bf3 100644 --- a/generated/konflux/build/pipelinerun-my-quarkus-1.yaml +++ b/generated/konflux/build/pipelinerun-my-quarkus-1.yaml @@ -3,15 +3,15 @@ apiVersion: "tekton.dev/v1" kind: "PipelineRun" metadata: annotations: - build.appstudio.openshift.io/repo: "https://github.com/ch007m/new-quarkus-app-1?rev={{revision}}" - pipelinesascode.tekton.dev/max-keep-runs: "3" - build.appstudio.redhat.com/commit_sha: "{{revision}}" - build.appstudio.redhat.com/target_branch: "{{target_branch}}" pipelinesascode.tekton.dev/on-cel-expression: "event == 'push' && target_branch\ \ == 'main'" + build.appstudio.redhat.com/target_branch: "{{target_branch}}" + build.appstudio.redhat.com/commit_sha: "{{revision}}" + pipelinesascode.tekton.dev/max-keep-runs: "3" + build.appstudio.openshift.io/repo: "https://github.com/ch007m/new-quarkus-app-1?rev={{revision}}" labels: - pipelines.openshift.io/strategy: "build" pipelines.openshift.io/runtime: "java" + pipelines.openshift.io/strategy: "build" pipelines.openshift.io/used-by: "build-cloud" name: "my-quarkus-1" spec: diff --git a/generated/konflux/buildpack/pipeline-buildpack-builder.yaml b/generated/konflux/buildpack/pipeline-buildpack-builder.yaml index 3025081..5142f83 100644 --- a/generated/konflux/buildpack/pipeline-buildpack-builder.yaml +++ b/generated/konflux/buildpack/pipeline-buildpack-builder.yaml @@ -3,16 +3,16 @@ apiVersion: "tekton.dev/v1" kind: "Pipeline" metadata: annotations: + pipelinesascode.tekton.dev/max-keep-runs: "3" + build.appstudio.openshift.io/repo: "https://github.com/paketo-community/builder-ubi-base?rev={{revision}}" pipelinesascode.tekton.dev/on-cel-expression: "event == 'push' && target_branch\ \ == 'main'" build.appstudio.redhat.com/target_branch: "{{target_branch}}" build.appstudio.redhat.com/commit_sha: "{{revision}}" - pipelinesascode.tekton.dev/max-keep-runs: "3" - build.appstudio.openshift.io/repo: "https://github.com/paketo-community/builder-ubi-base?rev={{revision}}" labels: + pipelines.openshift.io/used-by: "build-cloud" pipelines.openshift.io/runtime: "java" pipelines.openshift.io/strategy: "buildpack" - pipelines.openshift.io/used-by: "build-cloud" name: "buildpack-builder" spec: finally: diff --git a/generated/tekton/buildpack/pipelinerun-pack-builder-push.yaml b/generated/tekton/buildpack/pipelinerun-pack-builder-push.yaml index bb7fec3..f009002 100644 --- a/generated/tekton/buildpack/pipelinerun-pack-builder-push.yaml +++ b/generated/tekton/buildpack/pipelinerun-pack-builder-push.yaml @@ -3,9 +3,9 @@ apiVersion: "tekton.dev/v1" kind: "PipelineRun" metadata: annotations: + tekton.dev/displayName: "This Pipeline builds a builder image using the pack CLI." tekton.dev/platforms: "linux/amd64" tekton.dev/pipelines.minVersion: "0.40.0" - tekton.dev/displayName: "This Pipeline builds a builder image using the pack CLI." labels: app.kubernetes.io/version: "0.2" name: "pack-builder-push" @@ -37,6 +37,13 @@ spec: - name: "kind" value: "task" resolver: "bundles" + workspaces: + - name: "pack-workspace" + workspace: "pack-workspace" + - name: "data-store" + workspace: "data-store" + - name: "output" + workspace: "source-dir" - name: "fetch-packconfig-registrysecret" taskRef: params: @@ -47,6 +54,13 @@ spec: - name: "kind" value: "task" resolver: "bundles" + workspaces: + - name: "pack-workspace" + workspace: "pack-workspace" + - name: "source-dir" + workspace: "source-dir" + - name: "data-store" + workspace: "data-store" - name: "list-source-workspace" taskRef: params: @@ -57,6 +71,13 @@ spec: - name: "kind" value: "task" resolver: "bundles" + workspaces: + - name: "pack-workspace" + workspace: "pack-workspace" + - name: "source-dir" + workspace: "source-dir" + - name: "data-store" + workspace: "data-store" - name: "pack-builder" taskRef: params: @@ -67,6 +88,13 @@ spec: - name: "kind" value: "task" resolver: "bundles" + workspaces: + - name: "pack-workspace" + workspace: "pack-workspace" + - name: "source-dir" + workspace: "source-dir" + - name: "data-store" + workspace: "data-store" workspaces: - name: "pack-workspace" volumeClaimTemplate: