Skip to content

Commit

Permalink
Merge pull request #23 from ch007m/new-generated-pipelines-2024-08-12
Browse files Browse the repository at this point in the history
New resources generated and SCENARIO.md file updated - 2024-08-12
  • Loading branch information
cmoulliard authored Aug 12, 2024
2 parents 1df437a + 545fd7d commit 06a3008
Show file tree
Hide file tree
Showing 6 changed files with 120 additions and 80 deletions.
104 changes: 62 additions & 42 deletions SCENARIO.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,16 @@ apiVersion: "tekton.dev/v1"
kind: "PipelineRun"
metadata:
annotations:
pipelinesascode.tekton.dev/max-keep-runs: "3"
build.appstudio.openshift.io/repo: "https://github.com/ch007m/new-quarkus-app-1?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/ch007m/new-quarkus-app-1?rev={{revision}}"
labels:
pipelines.openshift.io/used-by: "build-cloud"
pipelines.openshift.io/runtime: "java"
pipelines.openshift.io/strategy: "build"
pipelines.openshift.io/used-by: "build-cloud"
name: "my-quarkus-1"
spec:
params:
Expand Down Expand Up @@ -442,15 +442,15 @@ 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}}"
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}}"
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/runtime: "java"
pipelines.openshift.io/used-by: "build-cloud"
name: "buildpack-builder"
spec:
finally:
Expand Down Expand Up @@ -889,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"
Expand All @@ -914,12 +914,17 @@ spec:
pipelineSpec:
tasks:
- name: "git-clone"
params:
- name: "url"
value: "$(params.git-url)"
- name: "subdirectory"
value: "."
taskRef:
params:
- name: "bundle"
value: "quay.io/konflux-ci/tekton-catalog/task-git-clone:0.1@sha256:de0ca8872c791944c479231e21d68379b54877aaf42e5f766ef4a8728970f8b3"
- name: "name"
value: null
value: "git-clone"
- name: "kind"
value: "task"
resolver: "bundles"
Expand All @@ -936,7 +941,7 @@ spec:
- name: "bundle"
value: "quay.io/ch007m/tekton-bundle:latest@sha256:af13b94347457df001742f8449de9edb381e90b0d174da598ddd15cf493e340f"
- name: "name"
value: null
value: "fetch-packconfig-registrysecret"
- name: "kind"
value: "task"
resolver: "bundles"
Expand All @@ -953,7 +958,7 @@ spec:
- name: "bundle"
value: "quay.io/ch007m/tekton-bundle:latest@sha256:af13b94347457df001742f8449de9edb381e90b0d174da598ddd15cf493e340f"
- name: "name"
value: null
value: "list-source-workspace"
- name: "kind"
value: "task"
resolver: "bundles"
Expand All @@ -965,12 +970,25 @@ spec:
- name: "data-store"
workspace: "data-store"
- name: "pack-builder"
params:
- name: "PACK_SOURCE_DIR"
value: "$(params.source-dir)"
- name: "PACK_CLI_IMAGE"
value: "$(params.imageUrl)"
- name: "PACK_CLI_IMAGE_VERSION"
value: "$(params.imageTag)"
- name: "BUILDER_IMAGE_NAME"
value: "$(params.output-image)"
- name: "PACK_BUILDER_TOML"
value: "ubi-builder.toml"
- name: "PACK_CMD_FLAGS"
value: "[$(params.packCmdBuilderFlags)]"
taskRef:
params:
- name: "bundle"
value: "quay.io/ch007m/tekton-bundle:latest@sha256:af13b94347457df001742f8449de9edb381e90b0d174da598ddd15cf493e340f"
- name: "name"
value: null
value: "pack-builder"
- name: "kind"
value: "task"
resolver: "bundles"
Expand Down Expand Up @@ -1036,7 +1054,7 @@ job:
description: Simple example of a Tekton pipeline echoing a message

# One of the supported resources: PipelineRun, Pipeline
resourceType: Pipeline
resourceType: PipelineRun

actions:
- name: say-hello
Expand All @@ -1052,32 +1070,33 @@ job:
```
Generated file:
```yaml
# generated/tekton/example/pipeline-simple-job-embedded-script.yaml
# generated/tekton/example/pipelinerun-simple-job-embedded-script.yaml

---
apiVersion: "tekton.dev/v1"
kind: "Pipeline"
kind: "PipelineRun"
metadata:
annotations:
tekton.dev/platforms: "linux/amd64"
tekton.dev/pipelines.minVersion: "0.40.0"
tekton.dev/displayName: "Simple example of a Tekton pipeline echoing a message"
tekton.dev/pipelines.minVersion: "0.40.0"
labels:
app.kubernetes.io/version: "0.2"
name: "simple-job-embedded-script"
namespace: "user"
spec:
tasks:
- name: "say-hello"
taskSpec:
steps:
- image: "ubuntu"
name: "run-script"
script: |-
#!/usr/bin/env bash
pipelineSpec:
tasks:
- name: "say-hello"
taskSpec:
steps:
- image: "ubuntu"
name: "run-script"
script: |-
#!/usr/bin/env bash
set -e
echo "Say Hello"
set -e
echo "Say Hello"
```
## Provider: tekton
Expand Down Expand Up @@ -1105,7 +1124,7 @@ job:
description: Simple example of a Tekton pipeline echoing a message

# One of the supported resources: PipelineRun, Pipeline
resourceType: Pipeline
resourceType: PipelineRun

actions:
- name: say-hello
Expand All @@ -1117,30 +1136,31 @@ job:
```
Generated file:
```yaml
# generated/tekton/example/pipeline-simple-job-fetch-script.yaml
# generated/tekton/example/pipelinerun-simple-job-fetch-script.yaml

---
apiVersion: "tekton.dev/v1"
kind: "Pipeline"
kind: "PipelineRun"
metadata:
annotations:
tekton.dev/displayName: "Simple example of a Tekton pipeline echoing a message"
tekton.dev/pipelines.minVersion: "0.40.0"
tekton.dev/platforms: "linux/amd64"
tekton.dev/pipelines.minVersion: "0.40.0"
tekton.dev/displayName: "Simple example of a Tekton pipeline echoing a message"
labels:
app.kubernetes.io/version: "0.2"
name: "simple-job-fetch-script"
spec:
tasks:
- name: "say-hello"
taskSpec:
steps:
- image: "ubuntu"
name: "run-script"
script: |
#!/usr/bin/env bash
pipelineSpec:
tasks:
- name: "say-hello"
taskSpec:
steps:
- image: "ubuntu"
name: "run-script"
script: |
#!/usr/bin/env bash
set -e
echo "Say Hello"
set -e
echo "Say Hello"
```
6 changes: 3 additions & 3 deletions generated/konflux/build/pipelinerun-my-quarkus-1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ apiVersion: "tekton.dev/v1"
kind: "PipelineRun"
metadata:
annotations:
pipelinesascode.tekton.dev/max-keep-runs: "3"
build.appstudio.openshift.io/repo: "https://github.com/ch007m/new-quarkus-app-1?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/ch007m/new-quarkus-app-1?rev={{revision}}"
labels:
pipelines.openshift.io/used-by: "build-cloud"
pipelines.openshift.io/runtime: "java"
pipelines.openshift.io/strategy: "build"
pipelines.openshift.io/used-by: "build-cloud"
name: "my-quarkus-1"
spec:
params:
Expand Down
10 changes: 5 additions & 5 deletions generated/konflux/buildpack/pipeline-buildpack-builder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ 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}}"
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}}"
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/runtime: "java"
pipelines.openshift.io/used-by: "build-cloud"
name: "buildpack-builder"
spec:
finally:
Expand Down
28 changes: 23 additions & 5 deletions generated/tekton/buildpack/pipelinerun-pack-builder-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -28,12 +28,17 @@ spec:
pipelineSpec:
tasks:
- name: "git-clone"
params:
- name: "url"
value: "$(params.git-url)"
- name: "subdirectory"
value: "."
taskRef:
params:
- name: "bundle"
value: "quay.io/konflux-ci/tekton-catalog/task-git-clone:0.1@sha256:de0ca8872c791944c479231e21d68379b54877aaf42e5f766ef4a8728970f8b3"
- name: "name"
value: null
value: "git-clone"
- name: "kind"
value: "task"
resolver: "bundles"
Expand All @@ -50,7 +55,7 @@ spec:
- name: "bundle"
value: "quay.io/ch007m/tekton-bundle:latest@sha256:af13b94347457df001742f8449de9edb381e90b0d174da598ddd15cf493e340f"
- name: "name"
value: null
value: "fetch-packconfig-registrysecret"
- name: "kind"
value: "task"
resolver: "bundles"
Expand All @@ -67,7 +72,7 @@ spec:
- name: "bundle"
value: "quay.io/ch007m/tekton-bundle:latest@sha256:af13b94347457df001742f8449de9edb381e90b0d174da598ddd15cf493e340f"
- name: "name"
value: null
value: "list-source-workspace"
- name: "kind"
value: "task"
resolver: "bundles"
Expand All @@ -79,12 +84,25 @@ spec:
- name: "data-store"
workspace: "data-store"
- name: "pack-builder"
params:
- name: "PACK_SOURCE_DIR"
value: "$(params.source-dir)"
- name: "PACK_CLI_IMAGE"
value: "$(params.imageUrl)"
- name: "PACK_CLI_IMAGE_VERSION"
value: "$(params.imageTag)"
- name: "BUILDER_IMAGE_NAME"
value: "$(params.output-image)"
- name: "PACK_BUILDER_TOML"
value: "ubi-builder.toml"
- name: "PACK_CMD_FLAGS"
value: "[$(params.packCmdBuilderFlags)]"
taskRef:
params:
- name: "bundle"
value: "quay.io/ch007m/tekton-bundle:latest@sha256:af13b94347457df001742f8449de9edb381e90b0d174da598ddd15cf493e340f"
- name: "name"
value: null
value: "pack-builder"
- name: "kind"
value: "task"
resolver: "bundles"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
---
apiVersion: "tekton.dev/v1"
kind: "Pipeline"
kind: "PipelineRun"
metadata:
annotations:
tekton.dev/platforms: "linux/amd64"
tekton.dev/pipelines.minVersion: "0.40.0"
tekton.dev/displayName: "Simple example of a Tekton pipeline echoing a message"
tekton.dev/pipelines.minVersion: "0.40.0"
labels:
app.kubernetes.io/version: "0.2"
name: "simple-job-embedded-script"
namespace: "user"
spec:
tasks:
- name: "say-hello"
taskSpec:
steps:
- image: "ubuntu"
name: "run-script"
script: |-
#!/usr/bin/env bash
pipelineSpec:
tasks:
- name: "say-hello"
taskSpec:
steps:
- image: "ubuntu"
name: "run-script"
script: |-
#!/usr/bin/env bash
set -e
echo "Say Hello"
set -e
echo "Say Hello"
Loading

0 comments on commit 06a3008

Please sign in to comment.