Skip to content

Commit

Permalink
Update template to use cluster resolver instead of clusterTask
Browse files Browse the repository at this point in the history
Signed-off-by: savitaashture <[email protected]>
  • Loading branch information
savitaashture authored and tekton-robot committed Nov 21, 2024
1 parent 219635d commit 04a2ca1
Show file tree
Hide file tree
Showing 39 changed files with 211 additions and 111 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,37 @@ spec:
tasks:
- name: fetch-repository
taskRef:
name: git-clone
kind: ClusterTask
resolver: cluster
params:
- name: kind
value: task
- name: name
value: git-clone
- name: namespace
value: openshift-pipelines
workspaces:
- name: output
workspace: workspace
params:
- name: url
- name: URL
value: $(params.GIT_REPO)
- name: revision
- name: REVISION
value: $(params.GIT_REVISION)
- name: subdirectory
- name: SUBDIRECTORY
value: ""
- name: deleteExisting
- name: DELETE_EXISTING
value: "true"
- name: build
taskRef:
name: buildah
kind: ClusterTask
resolver: cluster
params:
- name: kind
value: task
- name: name
value: buildah
- name: namespace
value: openshift-pipelines
runAfter:
- fetch-repository
workspaces:
Expand All @@ -55,13 +67,19 @@ spec:
params:
- name: IMAGE
value: $(params.IMAGE_NAME)
- name: TLSVERIFY
- name: TLS_VERIFY
value: "false"
- name: deploy
taskRef:
name: openshift-client
kind: ClusterTask
resolver: cluster
params:
- name: kind
value: task
- name: name
value: openshift-client
- name: namespace
value: openshift-pipelines
runAfter:
- build
params:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,37 @@ spec:
tasks:
- name: fetch-repository
taskRef:
name: git-clone
kind: ClusterTask
resolver: cluster
params:
- name: kind
value: task
- name: name
value: git-clone
- name: namespace
value: openshift-pipelines
workspaces:
- name: output
workspace: workspace
params:
- name: url
- name: URL
value: $(params.GIT_REPO)
- name: revision
- name: REVISION
value: $(params.GIT_REVISION)
- name: subdirectory
- name: SUBDIRECTORY
value: ""
- name: deleteExisting
- name: DELETE_EXISTING
value: "true"
- name: build
taskRef:
name: s2i-java
kind: ClusterTask
resolver: cluster
params:
- name: kind
value: task
- name: name
value: s2i-java
- name: namespace
value: openshift-pipelines
runAfter:
- fetch-repository
workspaces:
Expand All @@ -55,13 +67,19 @@ spec:
params:
- name: IMAGE
value: $(params.IMAGE_NAME)
- name: TLSVERIFY
- name: TLS_VERIFY
value: "false"
- name: deploy
taskRef:
name: openshift-client
kind: ClusterTask
resolver: cluster
params:
- name: kind
value: task
- name: name
value: openshift-client
- name: namespace
value: openshift-pipelines
runAfter:
- build
params:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,37 @@ spec:
tasks:
- name: fetch-repository
taskRef:
name: git-clone
kind: ClusterTask
resolver: cluster
params:
- name: kind
value: task
- name: name
value: git-clone
- name: namespace
value: openshift-pipelines
workspaces:
- name: output
workspace: workspace
params:
- name: url
- name: URL
value: $(params.GIT_REPO)
- name: revision
- name: REVISION
value: $(params.GIT_REVISION)
- name: subdirectory
- name: SUBDIRECTORY
value: ""
- name: deleteExisting
- name: DELETE_EXISTING
value: "true"
- name: build
taskRef:
name: s2i-nodejs
kind: ClusterTask
resolver: cluster
params:
- name: kind
value: task
- name: name
value: s2i-nodejs
- name: namespace
value: openshift-pipelines
runAfter:
- fetch-repository
workspaces:
Expand All @@ -55,13 +67,19 @@ spec:
params:
- name: IMAGE
value: $(params.IMAGE_NAME)
- name: TLSVERIFY
- name: TLS_VERIFY
value: "false"
- name: deploy
taskRef:
name: openshift-client
kind: ClusterTask
resolver: cluster
params:
- name: kind
value: task
- name: name
value: openshift-client
- name: namespace
value: openshift-pipelines
runAfter:
- build
params:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,21 @@ spec:
yaml: |
- name: build
taskRef:
name: buildah
kind: ClusterTask
resolver: cluster
params:
- name: kind
value: task
- name: name
value: buildah
- name: namespace
value: openshift-pipelines
workspaces:
- name: source
workspace: workspace
params:
- name: IMAGE
value: $(params.IMAGE_NAME)
- name: BUILDER_IMAGE
value: registry.redhat.io/rhel8/buildah
- name: DOCKERFILE
value: ./Dockerfile
- name: TLSVERIFY
- name: TLS_VERIFY
value: "true"
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ spec:
yaml: |
- name: deploy
taskRef:
name: openshift-client
kind: ClusterTask
resolver: cluster
params:
- name: kind
value: task
- name: name
value: openshift-client
- name: namespace
value: openshift-pipelines
params:
- name: ARGS
value: "help"
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,21 @@ spec:
yaml: |
- name: build
taskRef:
name: s2i-go
kind: ClusterTask
resolver: cluster
params:
- name: kind
value: task
- name: name
value: s2i-go
- name: namespace
value: openshift-pipelines
workspaces:
- name: source
workspace: workspace
params:
- name: IMAGE
value: $(params.IMAGE_NAME)
- name: PATH_CONTEXT
- name: CONTEXT
value: .
- name: TLSVERIFY
- name: TLS_VERIFY
value: "true"
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@ spec:
yaml: |
- name: build
taskRef:
name: s2i-java
kind: ClusterTask
resolver: cluster
params:
- name: kind
value: task
- name: name
value: s2i-java
- name: namespace
value: openshift-pipelines
workspaces:
- name: source
workspace: workspace
params:
- name: IMAGE
value: $(params.IMAGE_NAME)
- name: PATH_CONTEXT
- name: CONTEXT
value: .
- name: TLSVERIFY
- name: TLS_VERIFY
value: "true"
- name: MAVEN_ARGS_APPEND
value: ""
- name: MAVEN_CLEAR_REPO
value: "false"
- name: MAVEN_MIRROR_URL
value: ""
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,14 @@ spec:
yaml: |
- name: build
taskRef:
name: s2i-nodejs
kind: ClusterTask
resolver: cluster
params:
- name: kind
value: task
- name: name
value: s2i-nodejs
- name: namespace
value: openshift-pipelines
workspaces:
- name: source
workspace: workspace
Expand All @@ -27,7 +33,7 @@ spec:
value: $(params.IMAGE_NAME)
- name: VERSION
value: "14-ubi8"
- name: PATH_CONTEXT
- name: CONTEXT
value: .
- name: TLSVERIFY
- name: TLS_VERIFY
value: "true"
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,14 @@ spec:
yaml: |
- name: build
taskRef:
name: s2i-python
kind: ClusterTask
resolver: cluster
params:
- name: kind
value: task
- name: name
value: s2i-python
- name: namespace
value: openshift-pipelines
workspaces:
- name: source
workspace: workspace
Expand All @@ -27,7 +33,7 @@ spec:
value: $(params.IMAGE_NAME)
- name: VERSION
value: "3.8-ubi8"
- name: PATH_CONTEXT
- name: CONTEXT
value: .
- name: TLSVERIFY
- name: TLS_VERIFY
value: "true"
Loading

0 comments on commit 04a2ca1

Please sign in to comment.