You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* xref:../../applications/creating_applications/odc-creating-applications-using-developer-perspective.adoc#odc-creating-applications-using-the-developer-perspective[Creating applications using the Developer perspective]
Copy file name to clipboardExpand all lines: modules/odc-adding-a-GitHub-repository-containing-pipelines.adoc
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
4
4
= Adding a GitHub repository containing pipelines
5
5
6
-
In the developer perspective, you can add your GitHub repository containing pipelines to the {product-title} cluster. This allows you to run pipelines and tasks from your GitHub repository on the cluster when relevant Git events, such as push or pull requests are triggered.
6
+
In the *Developer* perspective, you can add your GitHub repository containing pipelines to the {product-title} cluster. This allows you to run pipelines and tasks from your GitHub repository on the cluster when relevant Git events, such as push or pull requests, are triggered.
7
7
8
8
[NOTE]
9
9
====
@@ -14,7 +14,7 @@ You can add both public and private GitHub repositories.
14
14
* Ensure that your cluster administrator has configured the required GitHub applications in the administrator perspective.
15
15
16
16
.Procedure
17
-
. In the developer perspective, choose the namespace or project in which you want to add your GitHub repository.
17
+
. In the *Developer* perspective, choose the namespace or project in which you want to add your GitHub repository.
18
18
. Navigate to *Pipelines* using the left navigation pane.
19
19
. Click *Create* -> *Repository* on the right side of the Pipelines page.
20
20
. Enter your *Git Repo URL* and the console automatically fetches the repository name.
. Navigate back to the developer console and click *Add*.
52
52
. Read the details of the steps that you have to perform and click *Close*.
53
53
. View the details of the repository you just created.
54
+
55
+
[NOTE]
56
+
====
57
+
When importing an application using *Import from Git* and the Git repository has a `.tekton` directory, you can configure `pipelines-as-code` for your application.
Copy file name to clipboardExpand all lines: modules/odc-importing-codebase-from-git-to-create-application.adoc
+15-4Lines changed: 15 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,10 +21,11 @@ The following procedure walks you through the *From Git* option in the *Develope
21
21
* *Context Dir* to specify the subdirectory for the application source code you want to use to build the application.
22
22
* *Source Secret* to create a *Secret Name* with credentials for pulling your source code from a private repository.
23
23
24
-
. Optional: You can import a devfile, a Dockerfile, or a builder image through your Git repository to further customize your deployment.
25
-
* If your Git repository contains a devfile, a Dockerfile, or a builder image, it is automatically detected and populated on the respective path fields. If a devfile, a Dockerfile, and a builder image are detected in the same repository, the devfile is selected by default.
24
+
. Optional: You can import a `Devfile`, a `Dockerfile`, or a `Builder Image` through your Git repository to further customize your deployment.
25
+
* If your Git repository contains a `Devfile`, a `Dockerfile`, or a `Builder Image`, it is automatically detected and populated on the respective path fields. If a `Devfile`, a `Dockerfile`, or a `Builder Image` are detected in the same repository, the `Devfile` is selected by default.
26
26
* To edit the file import type and select a different strategy, click *Edit import strategy* option.
27
-
* If multiple devfiles, Dockerfiles, or builder images are detected, to import a specific devfile, Dockerfile, or a builder image, specify the respective paths relative to the context directory.
27
+
* If multiple `Devfiles`, a `Dockerfiles`, or a `Builder Images` are detected, to import a specific instance, specify the respective paths relative to the context directory.
28
+
28
29
29
30
. After the Git URL is validated, the recommended builder image is selected and marked with a star. If the builder image is not auto-detected, select a builder image. For the `https://github.com/sclorg/nodejs-ex` Git URL, by default the Node.js builder image is selected.
30
31
.. Optional: Use the *Builder Image Version* drop-down to specify a version.
@@ -51,7 +52,17 @@ The resource name must be unique in a namespace. Modify the resource name if you
51
52
You can set the default resource preference for Import by browsing the User Preferences page and clicking *Applications*->*Resource type* field. The *Serverless Deployment* option is displayed in the *Import from Git* form only if the {ServerlessOperatorName} is installed in your cluster. For further details, refer to the {ServerlessProductName} documentation.
52
53
====
53
54
54
-
. In the *Pipelines* section, select *Add Pipeline*, and then click *Show Pipeline Visualization* to see the pipeline for the application. A default pipeline is selected, but you can choose the pipeline you want from the list of available pipelines for the application.
55
+
. In the *Pipelines* section, select *Add Pipeline*, and then click *Show Pipeline Visualization* to see the pipeline for the application. A default pipeline is selected, but you can choose the pipeline you want from the list of available pipelines for the application. If *Configure PAC* is checked and the GitHub App is set up, you can see *Use GitHub App* and *Setup a webhook* options. If GitHub App is not set up, you can see *Setup a webhook* option.
56
+
+
57
+
[NOTE]
58
+
====
59
+
The *Add pipeline* checkbox is checked and *Configure PAC* is selected by default if the following criterias are fulfilled:
60
+
61
+
* Pipeline operator is installed
62
+
* `pipelines-as-code` is enabled
63
+
* `.tekton` directory is detected in the Git repository
64
+
65
+
====
55
66
56
67
. Optional: In the *Advanced Options* section, the *Target port* and the *Create a route to the application* is selected by default so that you can access your application using a publicly available URL.
Copy file name to clipboardExpand all lines: modules/op-configuring-pipelines-as-code-for-a-github-app.adoc
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,12 @@
9
9
[role="_abstract"]
10
10
GitHub Apps act as a point of integration with {pipelines-title} and bring the advantage of Git-based workflows to OpenShift Pipelines. Cluster administrators can configure a single GitHub App for all cluster users. For GitHub Apps to work with Pipelines as Code, ensure that the webhook of the GitHub App points to the Pipelines as Code event listener route (or ingress endpoint) that listens for GitHub events.
11
11
12
+
[NOTE]
13
+
====
14
+
When importing an application using *Import from Git* and the Git repository has a `.tekton` directory, you can configure `pipelines-as-code` for your application.
0 commit comments