Skip to content

Commit adf3dff

Browse files
author
Tiexin Guo
authored
Merge pull request #602 from merico-dev/release-0.6
docs: update quickstart for varFile
2 parents 878a8d9 + dbda595 commit adf3dff

File tree

4 files changed

+17
-29
lines changed

4 files changed

+17
-29
lines changed

docs/quickstart_en.md

+6-13
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,17 @@ For Linux/Macos users:
1515

1616
## 2 Prepare a Config File
1717

18-
Before you start: for an example of DevStream config, see [examples/tools-quickstart.yaml](https://github.com/devstream-io/devstream/blob/main/examples/tools-quickstart.yaml). Remember to open this configuration file, modify all FULL_UPPER_CASE_STRINGS (like YOUR_GITHUB_USERNAME, for example) in it to your own. Pay attention to the meaning of each item to ensure that it is what you want. For other plugins, checkout the "Plugins" section in our [doc](https://docs.devstream.io) for detailed usage.
18+
> Before you start: for an example of DevStream config, see [examples/tools-quickstart.yaml](https://github.com/devstream-io/devstream/blob/main/examples/tools-quickstart.yaml).
1919
20-
Download the [examples/quickstart.yaml](https://raw.githubusercontent.com/devstream-io/devstream/main/examples/quickstart.yaml) and [examples/tools-quickstart.yaml](https://raw.githubusercontent.com/devstream-io/devstream/main/examples/tools-quickstart.yaml) to your working directory and rename `quickstart.yaml` to `config.yaml`:
20+
Download the [examples/quickstart.yaml](https://raw.githubusercontent.com/devstream-io/devstream/release-0.6/examples/quickstart.yaml), [examples/tools-quickstart.yaml](https://raw.githubusercontent.com/devstream-io/devstream/release-0.6/examples/tools-quickstart.yaml) and [examples/variables-quickstart.yaml](https://raw.githubusercontent.com/devstream-io/devstream/release-0.6/examples/variables-quickstart.yaml) to your working directory and rename `quickstart.yaml` to `config.yaml`:
2121

2222
```shell
23-
curl -o config.yaml https://raw.githubusercontent.com/devstream-io/devstream/main/examples/quickstart.yaml
24-
curl -o tools-quickstart.yaml https://raw.githubusercontent.com/devstream-io/devstream/main/examples/tools-quickstart.yaml
23+
curl -o config.yaml https://raw.githubusercontent.com/devstream-io/devstream/release-0.6/examples/quickstart.yaml
24+
curl -o tools-quickstart.yaml https://raw.githubusercontent.com/devstream-io/devstream/release-0.6/examples/tools-quickstart.yaml
25+
curl -o variables-quickstart.yaml https://raw.githubusercontent.com/devstream-io/devstream/release-0.6/examples/variables-quickstart.yaml
2526
```
2627

27-
Then modify the file accordingly.
28-
29-
For example, my GitHub username is "IronCore864", and my Dockerhub username is "ironcore864", then I can run:
30-
31-
```shell
32-
sed -i.bak "s/YOUR_GITHUB_USERNAME_CASE_SENSITIVE/IronCore864/g" tools-quickstart.yaml
33-
34-
sed -i.bak "s/YOUR_DOCKER_USERNAME/ironcore864/g" tools-quickstart.yaml
35-
```
28+
Remember to open the varFile and modify all values to your own. Pay attention to the meaning of each item to ensure that it is what you want. For other plugins, checkout the "Plugins" section in our [doc](https://docs.devstream.io) for detailed usage.
3629

3730
> This config file uses two plugins, one will create a GitHub repository and bootstrap it into a Golang web app, and the other will create GitHub Actions workflow for it.
3831

docs/quickstart_zh.md

+6-13
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,17 @@
1212
1313
## 2 准备一个配置文件
1414

15-
开始之前:这是一个DevStream配置的例子:[examples/tools-quickstart.yaml](https://github.com/devstream-io/devstream/blob/main/examples/tools-quickstart.yaml) 。记得打开这个配置文件,把里面所有的 `FULL_UPPER_CASE_STRINGS`(比如说 `YOUR_GITHUB_USERNAME` )修改成你自己的。注意每一项的含义,并确保它是你要的。对于其他插件,请查看我们的 [文档](https://docs.devstream.io) 中的"插件"部分,以了解详细用法
15+
> 开始之前:这是一个DevStream配置的例子:[examples/tools-quickstart.yaml](https://github.com/devstream-io/devstream/blob/main/examples/quickstart.yaml)
1616
17-
[examples/quickstart.yaml](https://raw.githubusercontent.com/devstream-io/devstream/main/examples/quickstart.yaml)[examples/tools-quickstart.yaml](https://raw.githubusercontent.com/devstream-io/devstream/main/examples/tools-quickstart.yaml) 文件下载到你到工作目录下,然后重命名`quickstart.yaml``config.yaml`
17+
[examples/quickstart.yaml](https://raw.githubusercontent.com/devstream-io/devstream/release-0.6/examples/quickstart.yaml), [examples/tools-quickstart.yaml](https://raw.githubusercontent.com/devstream-io/devstream/release-0.6/examples/tools-quickstart.yaml) [examples/variables-quickstart.yaml](https://raw.githubusercontent.com/devstream-io/devstream/release-0.6/examples/variables-quickstart.yaml)文件下载到你到工作目录下,然后重命名`quickstart.yaml``config.yaml`
1818

1919
```shell
20-
curl -o config.yaml https://raw.githubusercontent.com/devstream-io/devstream/main/examples/quickstart.yaml
21-
curl -o tools-quickstart.yaml https://raw.githubusercontent.com/devstream-io/devstream/main/examples/tools-quickstart.yaml
20+
curl -o config.yaml https://raw.githubusercontent.com/devstream-io/devstream/release-0.6/examples/quickstart.yaml
21+
curl -o tools-quickstart.yaml https://raw.githubusercontent.com/devstream-io/devstream/release-0.6/examples/tools-quickstart.yaml
22+
curl -o variables-quickstart.yaml https://raw.githubusercontent.com/devstream-io/devstream/release-0.6/examples/variables-quickstart.yaml
2223
```
2324

24-
然后相应的修改配置文件中的内容。
25-
26-
比如我的 GitHub 用户名是 "IronCore864", 然后我的 Dockerhub 用户名是 "ironcore864",这样我就可以运行:
27-
28-
```shell
29-
sed -i.bak "s/YOUR_GITHUB_USERNAME_CASE_SENSITIVE/IronCore864/g" tools-quickstart.yaml
30-
31-
sed -i.bak "s/YOUR_DOCKER_USERNAME/ironcore864/g" tools-quickstart.yaml
32-
```
25+
记得打开varFile,把里面所有的值修改成你自己的。注意每一项的含义,并确保它是你要的。对于其他插件,请查看我们的 [文档](https://docs.devstream.io) 中的"插件"部分,以了解详细用法。
3326

3427
> 这个配置文件会使用两个插件,一个用来创建 GitHub 项目,而且初始化成一个 Golang 的 web 应用结构。接着另外一个插件会给这个项目创建对应的 GitHub Actions 工作流。
3528

examples/quickstart.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# var file path, you can set it to absolute path or relative path.
2+
varFile: variables-quickstart.yaml # here is a relative path. (defaults is ./variables.yaml)
13
# tool file path, you can set it to absolute path or relative path.
24
toolFile: tools-quickstart.yaml # here is a relative path.
35
# state config, backend can be local or s3

examples/tools-quickstart.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ tools:
33
- name: github-repo-scaffolding-golang
44
instanceID: default
55
options:
6-
owner: YOUR_GITHUB_USERNAME_CASE_SENSITIVE
6+
owner: [[ githubUsername ]]
77
repo: go-webapp-devstream-demo
88
branch: main
9-
image_repo: YOUR_DOCKER_USERNAME/go-webapp-devstream-demo
9+
image_repo: [[ dockerhubUsername ]]/go-webapp-devstream-demo
1010
- name: githubactions-golang
1111
instanceID: default
1212
dependsOn: ["github-repo-scaffolding-golang.default"]
1313
options:
14-
owner: YOUR_GITHUB_USERNAME_CASE_SENSITIVE
14+
owner: [[ githubUsername ]]
1515
repo: go-webapp-devstream-demo
1616
language:
1717
name: go

0 commit comments

Comments
 (0)