-
Notifications
You must be signed in to change notification settings - Fork 352
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c8cb8ec
commit b3ae436
Showing
11 changed files
with
448 additions
and
190 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,64 @@ | ||
[[run-from-github]] | ||
= Run from GitHub | ||
|
||
It is possible to run integrations from GitHub with a dedicated URL | ||
syntax: | ||
It is possible to run integrations from a GitHub repository or Gist with dedicated URL syntax: | ||
|
||
``` | ||
== Repository | ||
|
||
.Syntax | ||
[source] | ||
---- | ||
kamel run github:$user/$repo/$path?branch=$branch | ||
``` | ||
---- | ||
|
||
As example, running the following command | ||
|
||
``` | ||
|
||
[source] | ||
---- | ||
kamel run github:apache/camel-k/examples/Sample.java | ||
``` | ||
---- | ||
|
||
is equivalent to: | ||
|
||
``` | ||
[source] | ||
---- | ||
kamel run https://raw.githubusercontent.com/apache/camel-k/master/examples/Sample.java | ||
``` | ||
---- | ||
|
||
but does not require to type the full GitHub RAW URL. | ||
|
||
Declaring the branch query param is not required and defaults to `master` if not explicit set. | ||
Declaring the branch query param is not required and defaults to `master` if not explicit set. | ||
|
||
== Gist | ||
|
||
.Syntax | ||
[source] | ||
---- | ||
kamel run https://gist.github.com/${user-id}/${gist-id} | ||
kamel run gist:${gist-id} | ||
---- | ||
|
||
camel-k will add any file that is part of the Gist as a source. | ||
|
||
As example, assuming there are two files listed as part of a Gist, beans.yaml and routes.yaml, then the following command | ||
|
||
|
||
[source] | ||
---- | ||
kamel run gist:${gist-id} | ||
---- | ||
|
||
is equivalent to: | ||
|
||
[source] | ||
---- | ||
kamel run \ | ||
https://gist.githubusercontent.com/${user-id}/${gist-id}/raw/${...}/beans.yaml \ | ||
https://gist.githubusercontent.com/${user-id}/${gist-id}/raw/${...}/routes.yaml | ||
---- | ||
|
||
[NOTE] | ||
==== | ||
GitHub applies rate limiting to its APIs and as Authenticated requests get a higher rate limit, the camel-k cli honour the env var GITHUB_TOKEN and if it is found, then it is used for GitHub authentication. | ||
==== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.