chore: install Tekton Task from local source code & install S2I task (#1234)

Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>

Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
This commit is contained in:
Zbynek Roubalik 2022-09-13 03:07:47 +02:00 committed by GitHub
parent d9ffaa944e
commit 1ed5b2d5fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,6 @@ export TERM="${TERM:-dumb}"
tekton_release="previous/v0.38.3" tekton_release="previous/v0.38.3"
git_clone_release="0.4" git_clone_release="0.4"
source_path="https://raw.githubusercontent.com/knative-sandbox/kn-plugin-func/main"
namespace="${NAMESPACE:-default}" namespace="${NAMESPACE:-default}"
tekton() { tekton() {
@ -40,8 +39,9 @@ tekton() {
tekton_tasks() { tekton_tasks() {
echo "Creating Pipeline tasks..." echo "Creating Pipeline tasks..."
kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/master/task/git-clone/${git_clone_release}/git-clone.yaml kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/master/task/git-clone/${git_clone_release}/git-clone.yaml
kubectl apply -f ${source_path}/pipelines/resources/tekton/task/func-buildpacks/0.1/func-buildpacks.yaml kubectl apply -f ./pipelines/resources/tekton/task/func-buildpacks/0.1/func-buildpacks.yaml
kubectl apply -f ${source_path}/pipelines/resources/tekton/task/func-deploy/0.1/func-deploy.yaml kubectl apply -f ./pipelines/resources/tekton/task/func-s2i/0.1/func-s2i.yaml
kubectl apply -f ./pipelines/resources/tekton/task/func-deploy/0.1/func-deploy.yaml
} }
tekton tekton

View File

@ -29,7 +29,7 @@ a Kubernetes Cluster with the following deployed:
For your convenience you can run the following script to setup Tekton and required Tasks: For your convenience you can run the following script to setup Tekton and required Tasks:
``` ```
$ ../hack/tekton.sh $ ./hack/tekton.sh
``` ```
To install the Git Server required by tests, run: To install the Git Server required by tests, run: