From 1ed5b2d5fd7087a99069924936dfa009e55a5e6b Mon Sep 17 00:00:00 2001 From: Zbynek Roubalik Date: Tue, 13 Sep 2022 03:07:47 +0200 Subject: [PATCH] chore: install Tekton Task from local source code & install S2I task (#1234) Signed-off-by: Zbynek Roubalik Signed-off-by: Zbynek Roubalik --- hack/tekton.sh | 6 +++--- test/README.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hack/tekton.sh b/hack/tekton.sh index 824b5b4fe..c86684b43 100755 --- a/hack/tekton.sh +++ b/hack/tekton.sh @@ -24,7 +24,6 @@ export TERM="${TERM:-dumb}" tekton_release="previous/v0.38.3" git_clone_release="0.4" -source_path="https://raw.githubusercontent.com/knative-sandbox/kn-plugin-func/main" namespace="${NAMESPACE:-default}" tekton() { @@ -40,8 +39,9 @@ tekton() { tekton_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 ${source_path}/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-buildpacks/0.1/func-buildpacks.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 diff --git a/test/README.md b/test/README.md index a18edc1fa..f8a31e3d2 100644 --- a/test/README.md +++ b/test/README.md @@ -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: ``` -$ ../hack/tekton.sh +$ ./hack/tekton.sh ``` To install the Git Server required by tests, run: