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
Copy file name to clipboardExpand all lines: docs/plugins/argocdapp.md
+29-30Lines changed: 29 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,6 @@ This plugin creates an [Argo CD Application](https://argo-cd.readthedocs.io/en/s
9
9
Or you can use both plugins(argocd+argocdapp) at the same time.
10
10
See [GitOps Toolchain](../use-cases/gitops.md) for more info.
11
11
- Currently, only the Helm chart is supported when creating the Argo CD application.
12
-
- Modify the file accordingly. Especially remember to modify `ARGOCD_TOOL_NAME`.
13
12
14
13
## Usage
15
14
@@ -21,6 +20,35 @@ For more information on the main config, the tool file and the var file of DevSt
21
20
--8<-- "argocdapp.yaml"
22
21
```
23
22
23
+
### Automatically Create Helm Configuration
24
+
25
+
This plugin can push helm configuration automatically when your `source.path` helm config does not exist so that you can use this plugin with helm configured already. For example:
This config will push the default [helm config](https://github.com/devstream-io/dtm-pipeline-templates/tree/main/argocdapp/helm)](https://github.com/devstream-io/dtm-pipeline-templates/tree/main/argocdapp/helm) to repo [testrepo](https://github.com/devstream-io/testrepo.git), and the generated config will use the image `http://test.barbor.com/library/test_owner/hello:1.0.0` as the initial image for Helm.
51
+
24
52
## Use Together with the `repo-scaffolding` Plugin
25
53
26
54
This plugin can be used together with the `repo-scaffolding` plugin (see document [here](./repo-scaffolding.md).)
@@ -72,32 +100,3 @@ In the example above:
72
100
- We used `repo-scaffolding.golang-github`'s output as input for the `github-actions` plugin.
73
101
74
102
Pay attention to the `${{ xxx }}` part in the example. `${{ TOOL_NAME.PLUGIN.outputs.var}}` is the syntax for using an output.
75
-
76
-
## Automatically Create Helm Configuration
77
-
78
-
This plugin can push helm configuration automatically when your source.path helm config not exist, so you can use this plugin with helm configured alreay. For example:
This config will push default helm config to repo `${{repo-scaffolding.golang-github.outputs.repoURL}}`, and the generated config will use image `http://test.barbor.com/library/test_owner/hello:1.0.0` as inital image for helm.
Copy file name to clipboardExpand all lines: docs/plugins/ci-generic.md
+8-23Lines changed: 8 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# ci-generic Plugin
2
2
3
-
This plugin installs ci script in GitLib/GitHub repo from local or remote url.
3
+
This plugin installs `CI` script in `GitLib`/`GitHub` repo from a local or remote url.
4
4
5
5
## Usage
6
6
@@ -12,31 +12,16 @@ For more information on the main config, the tool file and the var file of DevSt
12
12
--8<-- "ci-generic.yaml"
13
13
```
14
14
15
-
### Field Configs
16
-
17
-
| key | description |
18
-
| ---- | ---- |
19
-
| ci.localPath | If your ci file is local, you can set the this field to the ci file location, which can be a directory or a file |
20
-
| ci.remoteURL | If your ci file is remote, you can set this field to url address |
21
-
| ci.type | ci type, support gitlab, github, jenkins for now |
22
-
| projectRepo.owner | destination repo owner |
23
-
| projectRepo.org | destination repo org |
24
-
| projectRepo.name | destination repo name |
25
-
| projectRepo.branch | destination repo branch |
26
-
| projectRepo.scmType | destination repo type, support github/gitlab for now |
27
-
| projectRepo.baseURL | if you use self-build gitlab, you can set this field to gitlab address |
28
-
| projectRepo.visibility | if you use gitlab, you can set this field for repo permission |
29
-
30
15
**Notes:**
31
16
17
+
-`projectRepo` config option represents codebase location; for more info, you can refer to [SCM Config](./scm-option.md).
32
18
-`ci.localPath` and `ci.remoteURL` can't be empty at the same time.
33
-
- if you set both `ci.localPath` and `ci.remoteURL`, `ci.localPath` will be used.
34
-
- if your `projectRepo.scmType` is `gitlab`, the `ci.type` is not allowed to be `github`.
35
-
- if your `projectRepo.scmType` is `github`, the `ci.type` is not allowed to be `gitlab`.
19
+
- if your `projectRepo.scmType` is `gitlab`, the `ci.type` is not allowed to be `github-actions`.
20
+
- if your `projectRepo.scmType` is `github`, the `ci.type` is not allowed to be `gitlab-ci`.
36
21
37
-
###Example
22
+
## Example
38
23
39
-
####Local WorkFlows With Github
24
+
### Local WorkFlows With Github
40
25
41
26
```yaml
42
27
tools:
@@ -56,7 +41,7 @@ tools:
56
41
57
42
This config will put local workflows directory to GitHub repo's .github/workflows directory.
58
43
59
-
#### Remote Jenkinsfile With Gitlab
44
+
### Remote Jenkinsfile With Gitlab
60
45
61
46
```yaml
62
47
tools:
@@ -75,4 +60,4 @@ tools:
75
60
baseURL: http://127.0.0.1:30000
76
61
```
77
62
78
-
This config will put file from [remote](https://raw.githubusercontent.com/DeekshithSN/Jenkinsfile/inputTest/Jenkinsfile) to GitLab repo.
63
+
This config will put files from [remote](https://raw.githubusercontent.com/DeekshithSN/Jenkinsfile/inputTest/Jenkinsfile)](https://raw.githubusercontent.com/DeekshithSN/Jenkinsfile/inputTest/Jenkinsfile) to GitLab repo.
Copy file name to clipboardExpand all lines: docs/plugins/gitlab-ci.md
+5-12Lines changed: 5 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,28 +2,21 @@
2
2
3
3
This plugin creates GitLab CI workflow.
4
4
5
-
It downloads a template of your choice, render it with provided parameters, and creates a GitLab CI file to your repo.
5
+
It downloads a template of your choice, renders it with provided parameters, and creates a GitLab CI file for your repo.
6
6
7
7
## Usage
8
8
9
-
_This plugin depends on an environment variable "GITLAB_TOKEN", which is your GitLab personal access token._
10
-
11
-
TL;DR: if you are using gitlab.com (instead of a self-hosted GitLab), [click here](https://gitlab.com/-/profile/personal_access_tokens?name=DevStream+Access+token&scopes=api) to create a token for DevStream (the scope contains API only.)
12
-
13
-
If you are using self-hosted GitLab, refer to the [official doc here](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html) for more info.
14
-
15
-
_Note: when creating the token, make sure you select "API" in the "scopes" section, as DevStream uses GitLab API to add CI workflow files._
16
-
17
9
The following content is an example of the "tool file".
18
10
19
-
For more information on the main config, the tool file and the var file of DevStream, see [Core Concepts Overview](../core-concepts/overview.md) and [DevStream Configuration](../core-concepts/config.md).
11
+
For more information on the main config, the tool file, and the var file of DevStream, see [Core Concepts Overview](../core-concepts/overview.md) and [DevStream Configuration](../core-concepts/config.md).
20
12
21
13
Plugin config example:
22
14
23
15
```yaml
24
16
--8<-- "gitlab-ci.yaml"
25
17
```
26
18
27
-
Or, run `dtm show config --plugin=gitlab-ci` to get the default config.
19
+
**Notes:**
28
20
29
-
All parameters are mandatory.
21
+
-`scm` config option represents codebase location; for more info, you can refer to [SCM Config](./scm-option.md).
22
+
- The `pipeline` config option controls `CI` stages; you can refer to [Pipeline Config](./pipeline.md) for more info.
0 commit comments