-
Notifications
You must be signed in to change notification settings - Fork 59
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 #127 from pradeepitm12/tsksnpt
Add task snippets for YAML editor
- Loading branch information
Showing
8 changed files
with
271 additions
and
0 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
deploy/resources/v0.8.0/optional/tasksnippets/buildah-task-snippet.yaml
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,34 @@ | ||
--- | ||
apiVersion: console.openshift.io/v1 | ||
kind: ConsoleYAMLSample | ||
metadata: | ||
name: buildah-snippet | ||
spec: | ||
targetResource: | ||
apiVersion: tekton.dev/v1alpha1 | ||
kind: Pipeline | ||
title: Buildah Task | ||
description: | | ||
Buildash task builds the source into a container image Project Atomic's Buildah build tool. | ||
It uses Buildah's support for building from Dockerfiles, using its buildah bud command. | ||
This command executes the directives in the Dockerfile to assemble a container image, then pushes that image to a container registry. | ||
snippet: true | ||
yaml: | | ||
- name: build | ||
taskRef: | ||
name: buildah | ||
kind: ClusterTask | ||
resources: | ||
inputs: | ||
- name: source | ||
resource: app-source | ||
outputs: | ||
- name: image | ||
resource: app-image | ||
params: | ||
- name: BUILDER_IMAGE | ||
value: quay.io/buildah/stable:v1.11.0 | ||
- name: DOCKERFILE | ||
value: ./Dockerfile | ||
- name: TLSVERIFY | ||
value: "true" |
21 changes: 21 additions & 0 deletions
21
deploy/resources/v0.8.0/optional/tasksnippets/openshift-client-task-snippet.yaml
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,21 @@ | ||
--- | ||
apiVersion: console.openshift.io/v1 | ||
kind: ConsoleYAMLSample | ||
metadata: | ||
name: openshift-client-snippet | ||
spec: | ||
targetResource: | ||
apiVersion: tekton.dev/v1alpha1 | ||
kind: Pipeline | ||
title: Openshift-client Task | ||
description: | | ||
OpenShift is a Kubernetes distribution from Red Hat which provides oc, the OpenShift CLI that complements kubectl for simplifying deployment and configuration applications on OpenShift. | ||
snippet: true | ||
yaml: | | ||
- name: deploy | ||
taskRef: | ||
name: openshift-client | ||
kind: ClusterTask | ||
params: | ||
- name: ARGS | ||
value: "help" |
34 changes: 34 additions & 0 deletions
34
deploy/resources/v0.8.0/optional/tasksnippets/s2i-go-task-snippet.yaml
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,34 @@ | ||
--- | ||
apiVersion: console.openshift.io/v1 | ||
kind: ConsoleYAMLSample | ||
metadata: | ||
name: s2i-go-snippet | ||
spec: | ||
targetResource: | ||
apiVersion: tekton.dev/v1alpha1 | ||
kind: Pipeline | ||
title: S2I-Go Task | ||
description: | | ||
An s2i task to build go based source. | ||
Source-to-Image (S2I) is a toolkit and workflow for building reproducible container images from source code. | ||
S2I produces images by injecting source code into a base S2I container image and letting the container prepare that source code for execution. | ||
The base S2I container images contains the language runtime and build tools needed for building and running the source code. | ||
snippet: true | ||
yaml: | | ||
- name: build | ||
taskRef: | ||
name: s2i-go | ||
kind: ClusterTask | ||
resources: | ||
inputs: | ||
- name: source | ||
resource: app-source | ||
outputs: | ||
- name: image | ||
resource: app-image | ||
params: | ||
- name: PATH_CONTEXT | ||
value: . | ||
- name: TLSVERIFY | ||
value: "true" |
39 changes: 39 additions & 0 deletions
39
deploy/resources/v0.8.0/optional/tasksnippets/s2i-java-11-task-snippet.yaml
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,39 @@ | ||
--- | ||
apiVersion: console.openshift.io/v1 | ||
kind: ConsoleYAMLSample | ||
metadata: | ||
name: s2i-java-11-snippet | ||
spec: | ||
targetResource: | ||
apiVersion: tekton.dev/v1alpha1 | ||
kind: Pipeline | ||
title: S2I-Java-11 Task | ||
description: | | ||
An s2i task to build java 11 based source. | ||
Source-to-Image (S2I) is a toolkit and workflow for building reproducible container images from source code. | ||
S2I produces images by injecting source code into a base S2I container image and letting the container prepare that source code for execution. | ||
The base S2I container images contains the language runtime and build tools needed for building and running the source code. | ||
snippet: true | ||
yaml: | | ||
- name: build | ||
taskRef: | ||
name: s2i-java-11 | ||
kind: ClusterTask | ||
resources: | ||
inputs: | ||
- name: source | ||
resource: app-source | ||
outputs: | ||
- name: image | ||
resource: app-image | ||
params: | ||
- name: PATH_CONTEXT | ||
value: . | ||
- name: TLSVERIFY | ||
value: "true" | ||
- name: MAVEN_ARGS_APPEND | ||
value: "" | ||
- name: MAVEN_CLEAR_REPO | ||
value: "false" | ||
- name: MAVEN_MIRROR_URL | ||
value: "" |
39 changes: 39 additions & 0 deletions
39
deploy/resources/v0.8.0/optional/tasksnippets/s2i-java-8-task-snippet.yaml
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,39 @@ | ||
--- | ||
apiVersion: console.openshift.io/v1 | ||
kind: ConsoleYAMLSample | ||
metadata: | ||
name: s2i-java-8-snippet | ||
spec: | ||
targetResource: | ||
apiVersion: tekton.dev/v1alpha1 | ||
kind: Pipeline | ||
title: S2I-Java-8 Task | ||
description: | | ||
An s2i task to build java 8 based source. | ||
Source-to-Image (S2I) is a toolkit and workflow for building reproducible container images from source code. | ||
S2I produces images by injecting source code into a base S2I container image and letting the container prepare that source code for execution. | ||
The base S2I container images contains the language runtime and build tools needed for building and running the source code. | ||
snippet: true | ||
yaml: | | ||
- name: build | ||
taskRef: | ||
name: s2i-java-8 | ||
kind: ClusterTask | ||
resources: | ||
inputs: | ||
- name: source | ||
resource: app-source | ||
outputs: | ||
- name: image | ||
resource: app-image | ||
params: | ||
- name: PATH_CONTEXT | ||
value: . | ||
- name: TLSVERIFY | ||
value: "true" | ||
- name: MAVEN_ARGS_APPEND | ||
value: "" | ||
- name: MAVEN_CLEAR_REPO | ||
value: "false" | ||
- name: MAVEN_MIRROR_URL | ||
value: "" |
35 changes: 35 additions & 0 deletions
35
deploy/resources/v0.8.0/optional/tasksnippets/s2i-nodejs-task-snippet.yaml
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,35 @@ | ||
--- | ||
apiVersion: console.openshift.io/v1 | ||
kind: ConsoleYAMLSample | ||
metadata: | ||
name: s2i-nodejs-snippet | ||
spec: | ||
targetResource: | ||
apiVersion: tekton.dev/v1alpha1 | ||
kind: Pipeline | ||
title: S2I-Nodejs Task | ||
description: | | ||
An s2i task to build nodejs based source. | ||
Source-to-Image (S2I) is a toolkit and workflow for building reproducible container images from source code. | ||
S2I produces images by injecting source code into a base S2I container image and letting the container prepare that source code for execution. | ||
The base S2I container images contains the language runtime and build tools needed for building and running the source code. | ||
snippet: true | ||
yaml: | | ||
- name: build | ||
taskRef: | ||
name: s2i-nodejs | ||
kind: ClusterTask | ||
resources: | ||
inputs: | ||
- name: source | ||
resource: app-source | ||
outputs: | ||
- name: image | ||
resource: app-image | ||
params: | ||
- name: VERSION | ||
value: "8" | ||
- name: PATH_CONTEXT | ||
value: . | ||
- name: TLSVERIFY | ||
value: "true" |
35 changes: 35 additions & 0 deletions
35
deploy/resources/v0.8.0/optional/tasksnippets/s2i-python-3-task-snippet.yaml
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,35 @@ | ||
--- | ||
apiVersion: console.openshift.io/v1 | ||
kind: ConsoleYAMLSample | ||
metadata: | ||
name: s2i-python-3-snippet | ||
spec: | ||
targetResource: | ||
apiVersion: tekton.dev/v1alpha1 | ||
kind: Pipeline | ||
title: S2I-Python-3 Task | ||
description: | | ||
An s2i task to build python 3 based source. | ||
Source-to-Image (S2I) is a toolkit and workflow for building reproducible container images from source code. | ||
S2I produces images by injecting source code into a base S2I container image and letting the container prepare that source code for execution. | ||
The base S2I container images contains the language runtime and build tools needed for building and running the source code. | ||
snippet: true | ||
yaml: | | ||
- name: build | ||
taskRef: | ||
name: s2i-python-3 | ||
kind: ClusterTask | ||
resources: | ||
inputs: | ||
- name: source | ||
resource: app-source | ||
outputs: | ||
- name: image | ||
resource: app-image | ||
params: | ||
- name: MINOR_VERSION | ||
value: "6" | ||
- name: PATH_CONTEXT | ||
value: . | ||
- name: TLSVERIFY | ||
value: "true" |
34 changes: 34 additions & 0 deletions
34
deploy/resources/v0.8.0/optional/tasksnippets/s2i-task-snippet.yaml
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,34 @@ | ||
--- | ||
apiVersion: console.openshift.io/v1 | ||
kind: ConsoleYAMLSample | ||
metadata: | ||
name: s2i-snippet | ||
spec: | ||
targetResource: | ||
apiVersion: tekton.dev/v1alpha1 | ||
kind: Pipeline | ||
title: S2I Task | ||
description: | | ||
Source-to-Image (S2I) is a toolkit and workflow for building reproducible container images from source code. | ||
S2I produces images by injecting source code into a base S2I container image and letting the container prepare that source code for execution. | ||
The base S2I container images contains the language runtime and build tools needed for building and running the source code. | ||
snippet: true | ||
yaml: | | ||
- name: build | ||
taskRef: | ||
name: s2i | ||
kind: ClusterTask | ||
resources: | ||
inputs: | ||
- name: source | ||
value: app-source | ||
outputs: | ||
- name: image | ||
value: app-image | ||
params: | ||
- name: PATH_CONTEXT | ||
value: . | ||
- name: TLSVERIFY | ||
value: "true" | ||
- name: LOGLEVEL | ||
value: "0" |