@@ -23,18 +23,18 @@ include::snippets/technology-preview.adoc[leveloffset=+1]
23
23
24
24
. In each namespace where you want to run {pipelines-shortname} and deploy a function, you must create the following resources:
25
25
26
- .. Create the functions buildpacks Tekton task to be able to build the function image :
26
+ .. Create the `s2i` Tekton task to be able to use Source-to-Image in the pipeline :
27
27
+
28
28
[source,terminal]
29
29
----
30
- $ oc apply -f https://raw.githubusercontent.com/openshift-knative/kn-plugin-func/serverless-1.22 .0/pipelines/resources/tekton/task/func-buildpacks /0.1/func-buildpacks .yaml
30
+ $ oc apply -f https://raw.githubusercontent.com/openshift-knative/kn-plugin-func/serverless-1.25 .0/pipelines/resources/tekton/task/func-s2i /0.1/func-s2i .yaml
31
31
----
32
32
33
33
.. Create the `kn func` deploy Tekton task to be able to deploy the function in the pipeline:
34
34
+
35
35
[source,terminal]
36
36
----
37
- $ oc apply -f https://raw.githubusercontent.com/openshift-knative/kn-plugin-func/serverless-1.22 .0/pipelines/resources/tekton/task/func-deploy/0.1/func-deploy.yaml
37
+ $ oc apply -f https://raw.githubusercontent.com/openshift-knative/kn-plugin-func/serverless-1.25 .0/pipelines/resources/tekton/task/func-deploy/0.1/func-deploy.yaml
38
38
----
39
39
40
40
. Create a function:
@@ -51,17 +51,15 @@ $ kn func create <function_name> -l <runtime>
51
51
[source,yaml]
52
52
----
53
53
...
54
- build: git <1>
55
54
git:
56
- url: <git _repository_url > <2 >
57
- revision: main <3 >
58
- contextDir: <directory _path > <4 >
55
+ url: <git _repository_url > <1 >
56
+ revision: main <2 >
57
+ contextDir: <directory _path > <3 >
59
58
...
60
59
----
61
- <1> Required. Specify `git` build type.
62
- <2> Required. Specify the Git repository that contains your function's source code.
63
- <3> Optional. Specify the Git repository revision to be used. This can be a branch, tag or commit.
64
- <4> Optional. Specify the function's directory path if the function is not located in the Git repository root folder.
60
+ <1> Required. Specify the Git repository that contains your function's source code.
61
+ <2> Optional. Specify the Git repository revision to be used. This can be a branch, tag, or commit.
62
+ <3> Optional. Specify the function's directory path if the function is not located in the Git repository root folder.
65
63
66
64
. Implement the business logic of your function. Then, use Git to commit and push the changes.
67
65
0 commit comments