Skip to content

Commit 37feef6

Browse files
authored
Merge pull request #375 from merico-dev/release-0.3.1
feat: prepare for v0.3.1 release
2 parents 75443ec + 74766a6 commit 37feef6

29 files changed

+72
-245
lines changed

.github/workflows/automated-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
restore-keys: |
3636
${{ runner.os }}-go-
3737
- name: Build
38-
run: make build
38+
run: make build -j8
3939
- name: Install Github-release
4040
run: go install github.com/github-release/github-release@latest
4141
- name: upload
@@ -73,7 +73,7 @@ jobs:
7373
restore-keys: |
7474
${{ runner.os }}-go-
7575
- name: Build
76-
run: make build
76+
run: make build -j8
7777
- name: Install Github-release
7878
run: go install github.com/github-release/github-release@latest
7979
- name: upload

.github/workflows/e2e-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
restore-keys: |
3030
${{ runner.os }}-go-
3131
- name: Build
32-
run: make build
32+
run: make build -j8
3333
- name: Configure AWS credentials
3434
uses: aws-actions/configure-aws-credentials@v1
3535
with:

.github/workflows/main-builder.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
restore-keys: |
2626
${{ runner.os }}-go-
2727
- name: Build
28-
run: make build
28+
run: make build -j8
2929
- name: Test
3030
run: go test -v ./...
3131
build-and-test-on-macos:
@@ -48,6 +48,6 @@ jobs:
4848
restore-keys: |
4949
${{ runner.os }}-go-
5050
- name: Build
51-
run: make build
51+
run: make build -j8
5252
- name: Test
5353
run: go test -v ./...

.github/workflows/ut-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ jobs:
2525
restore-keys: |
2626
${{ runner.os }}-go-
2727
- name: Build
28-
run: make build
28+
run: make build -j8
2929
- name: Test
3030
run: go test -v ./...

.github/workflows/ut-mac.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ jobs:
2525
restore-keys: |
2626
${{ runner.os }}-go-
2727
- name: Build
28-
run: make build
28+
run: make build -j8
2929
- name: Test
3030
run: go test -v ./...

Makefile

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION=0.3.0
1+
VERSION=0.3.1
22

33
MKFILE_PATH=$(abspath $(lastword $(MAKEFILE_LIST)))
44
BUILD_PATH=$(patsubst %/,%,$(dir $(MKFILE_PATH)))/build/working_dir
@@ -63,21 +63,6 @@ md5-plugin.%:
6363
$(eval plugin_name := $(strip $*))
6464
${MD5SUM} .devstream/${plugin_name}-${PLUGIN_SUFFIX}.so > .devstream/${plugin_name}-${PLUGIN_SUFFIX}.md5
6565

66-
67-
.PHONY: build-linux-amd64
68-
build-linux-amd64: ## Cross-platform build for "linux/amd64".
69-
echo "Building in ${BUILD_PATH}"
70-
mkdir -p .devstream
71-
rm -rf ${BUILD_PATH} && mkdir ${BUILD_PATH}
72-
docker buildx build --platform linux/amd64 --load -t mericodev/stream-builder:v${VERSION} --build-arg VERSION=${VERSION} -f build/package/Dockerfile .
73-
cp -r go.mod go.sum cmd internal pkg build/package/build_linux_amd64.sh ${BUILD_PATH}/
74-
chmod +x ${BUILD_PATH}/build_linux_amd64.sh
75-
docker run --rm --platform linux/amd64 -v ${BUILD_PATH}:/devstream mericodev/stream-builder:v${VERSION}
76-
mv ${BUILD_PATH}/output/*.so .devstream/
77-
mv ${BUILD_PATH}/output/*.md5 .devstream/
78-
mv ${BUILD_PATH}/output/dtm* .
79-
rm -rf ${BUILD_PATH}
80-
8166
.PHONY: fmt
8267
fmt: ## Run 'go fmt' & goimports against code.
8368
goimports -local="github.com/merico-dev/stream" -d -w cmd

build/package/Dockerfile

Lines changed: 0 additions & 12 deletions
This file was deleted.

build/package/auto-release-darwin-arm64.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/bash -e
22

3-
tag=v0.4.0
3+
tag=v0.3.1
44

55
user=merico-dev
66
repo=stream
@@ -12,7 +12,7 @@ GOARCH=$(go env GOARCH)
1212

1313
# call build core and plugins
1414
cd ../..
15-
make build
15+
make build -j8
1616

1717
# install github-release for uploading
1818
go install github.com/github-release/github-release@latest

build/package/build_linux_amd64.sh

Lines changed: 0 additions & 33 deletions
This file was deleted.

docs/core_concepts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The architecture documentation explains how in general DevStream works. If you h
88
- Each _Tool_ has its Name, Plugin, and Options, as defined [here](https://github.com/merico-dev/stream/blob/main/internal/pkg/configloader/config.go#L24).
99
- Each _Tool_ can have its dependencies, which are specified by the `dependsOn` keyword.
1010

11-
The dependency `dependsOn` is an array of strings, with each element being a dependency. Each dependency is named in the format of "NAME.KIND". See [here](https://github.com/merico-dev/stream/blob/main/examples/quickstart.yaml#L16) for example.
11+
The dependency `dependsOn` is an array of strings, with each element being a dependency. Each dependency is named in the format of "NAME.PLUGIN". See [here](https://github.com/merico-dev/stream/blob/main/examples/quickstart.yaml#L16) for example.
1212

1313
## 2 State
1414

docs/output.md

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,23 @@ Notes:
1616
To use the output, follow this format:
1717

1818
```
19-
${{ TOOL_NAME.TOOL_KIND.outputs.OUTPUT_KEY }}
19+
${{ TOOL_NAME.PLUGIN.outputs.OUTPUT_KEY }}
2020
```
2121

2222
For example, given config:
2323

2424
```yaml
2525
tools:
2626
- name: kanban
27-
plugin:
28-
kind: trello
29-
version: 0.3.0
27+
plugin: trello
3028
options:
3129
owner: IronCore864
3230
repo: golang-demo
3331
kanbanBoardName: golang-demo-board
3432
```
3533
3634
- TOOL_NAME is "kanban"
37-
- TOOL_KIND is "trello"
35+
- PLUGIN is "trello"
3836
3937
If the "trello" plugin has an output key name "boardId", then we can use its value by the following syntax:
4038
@@ -50,18 +48,14 @@ Config:
5048
---
5149
tools:
5250
- name: repo
53-
plugin:
54-
kind: github-repo-scaffolding-golang
55-
version: 0.3.0
51+
plugin: github-repo-scaffolding-golang
5652
options:
5753
owner: IronCore864
5854
repo: golang-demo
5955
branch: main
6056
image_repo: ironcore864/golang-demo
6157
- name: cd
62-
plugin:
63-
kind: argocd
64-
version: 0.3.0
58+
plugin: argocd
6559
options:
6660
create_namespace: true
6761
repo:
@@ -75,9 +69,7 @@ tools:
7569
timeout: 10m
7670
upgradeCRDs: true
7771
- name: demo
78-
plugin:
79-
kind: argocdapp
80-
version: 0.3.0
72+
plugin: argocdapp
8173
dependsOn: [ "cd.argocd", "demo.github-repo-scaffolding-golang" ]
8274
options:
8375
app:
@@ -93,7 +85,7 @@ tools:
9385
```
9486
9587
In this example:
96-
- Tool "demo" (kind: argocdapp) depends on tool "repo" (kind: github-repo-scaffolding-golang);
88+
- Tool "demo" (plugin: argocdapp) depends on tool "repo" (plugin: github-repo-scaffolding-golang);
9789
- tool "demo" has an user option "options.source.repoURL", which uses tool "repo" output "repoURL" (`${{ demo.github-repo-scaffolding-golang.outputs.repoURL }}`)
9890

9991

docs/plugins/argocd.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,8 @@ This plugin installs [ArgoCD](https://argoproj.github.io/cd/) in an existing Kub
77
```yaml
88
tools:
99
- name: argocd
10-
plugin:
11-
# name of the plugin
12-
kind: argocd
13-
# version of the plugin
14-
# checkout the version from the GitHub releases
15-
version: 0.3.0
10+
# name of the plugin
11+
plugin: argocd
1612
options:
1713
# need to create the namespace or not, default: false
1814
create_namespace: true

docs/plugins/argocdapp.md

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,8 @@ This plugin creates an [ArgoCD Application](https://argo-cd.readthedocs.io/en/st
1414
```yaml
1515
tools:
1616
- name: helloworld
17-
plugin:
18-
# name of the plugin
19-
kind: argocdapp
20-
# version of the plugin
21-
# checkout the version from the GitHub releases
22-
version: 0.3.0
17+
# name of the plugin
18+
plugin: argocdapp
2319
# if specified, dtm will make sure the dependency is applied first before handling this tool.
2420
dependsOn: [ "ARGOCD_TOOL_NAME.argocd" ]
2521
# options for the plugin
@@ -61,18 +57,14 @@ See the example below:
6157
---
6258
tools:
6359
- name: go-webapp-repo
64-
plugin:
65-
kind: github-repo-scaffolding-golang
66-
version: 0.2.0
60+
plugin: github-repo-scaffolding-golang
6761
options:
6862
owner: IronCore864
6963
repo: go-webapp-devstream-demo
7064
branch: main
7165
image_repo: ironcore864/go-webapp-devstream-demo
7266
- name: go-webapp-argocd-deploy
73-
plugin:
74-
kind: argocdapp
75-
version: 0.2.0
67+
plugin: argocdapp
7668
dependsOn: ["go-webapp-repo.github-repo-scaffolding-golang"]
7769
options:
7870
app:
@@ -92,4 +84,4 @@ In the example above:
9284
- We put `go-webapp-repo.github-repo-scaffolding-golang` as dependency by using the `dependsOn` keyword.
9385
- We used `go-webapp-repo.github-repo-scaffolding-golang`'s output as input for the `githubactions-golang` plugin.
9486

95-
Pay attention to the `${{ xxx }}` part in the example. `${{ TOOL_NAME.TOOL_KIND.outputs.var}}` is the syntax for using an output.
87+
Pay attention to the `${{ xxx }}` part in the example. `${{ TOOL_NAME.PLUGIN.outputs.var}}` is the syntax for using an output.

docs/plugins/devlake.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,8 @@ Note that this isn't a production-ready installation; it's only meant as an alte
99
```yaml
1010
tools:
1111
- name: devlake
12-
plugin:
13-
# name of the plugin
14-
kind: devlake
15-
# version of the plugin
16-
# checkout the version from the GitHub releases
17-
version: 0.3.0
12+
# name of the plugin
13+
plugin: devlake
1814
```
1915
2016
All the parameters in the example above are mandatory.

docs/plugins/github-repo-scaffolding-golang.md

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,8 @@ If you don't know how to create this token, check out:
2525
tools:
2626
# name of the instance with github-repo-scaffolding-golang
2727
- name: go-webapp-repo
28-
plugin:
29-
# kind of the plugin
30-
kind: github-repo-scaffolding-golang
31-
# version of the plugin
32-
# checkout the version from the GitHub releases
33-
version: 0.3.0
28+
# name of the plugin
29+
plugin: github-repo-scaffolding-golang
3430
# options for the plugin
3531
options:
3632
# the repo's owner. It should be case-sensitive here; strictly use your GitHub user name; please change the value below.
@@ -68,18 +64,14 @@ If, for example, you want to use the outputs as inputs for another plugin, you c
6864
---
6965
tools:
7066
- name: go-webapp-repo
71-
plugin:
72-
kind: github-repo-scaffolding-golang
73-
version: 0.3.0
67+
plugin: github-repo-scaffolding-golang
7468
options:
7569
owner: IronCore864
7670
repo: go-webapp-devstream-demo
7771
branch: main
7872
image_repo: ironcore864/go-webapp-devstream-demo
7973
- name: golang-demo-actions
80-
plugin:
81-
kind: githubactions-golang
82-
version: 0.3.0
74+
plugin: githubactions-golang
8375
dependsOn: ["go-webapp-repo.github-repo-scaffolding-golang"]
8476
options:
8577
owner: ${{go-webapp-repo.github-repo-scaffolding-golang.outputs.owner}}
@@ -98,4 +90,4 @@ tools:
9890
enable: False
9991
```
10092

101-
Pay attention to the `${{ xxx }}` part in the example. `${{ TOOL_NAME.TOOL_KIND.outputs.var}}` is the syntax for using an output.
93+
Pay attention to the `${{ xxx }}` part in the example. `${{ TOOL_NAME.PLUGIN.outputs.var}}` is the syntax for using an output.

docs/plugins/githubactions-golang.md

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,10 @@ _If Docker image build/push is enabled (see the example below), you also need to
2020
```yaml
2121
tools:
2222
- name: golang-demo-app
23-
plugin:
24-
# name of the plugin
25-
kind: githubactions-golang
26-
# version of the plugin
27-
# checkout the version from the GitHub releases
28-
version: 0.3.0
23+
# name of the plugin
24+
plugin: githubactions-golang
2925
# optional; if specified, dtm will make sure the dependency is applied first before handling this tool.
30-
dependsOn: [ "TOOL1_NAME.TOOL1_KIND", "TOOL2_NAME.TOOL2_KIND" ]
26+
dependsOn: [ "TOOL1_NAME.TOOL1_PLUGIN", "TOOL2_NAME.TOOL2_PLUGIN" ]
3127
# options for the plugin
3228
options:
3329
# the repo's owner. It should be case-sensitive here; strictly use your GitHub user name; please change the value below.
@@ -81,18 +77,14 @@ See the example below:
8177
---
8278
tools:
8379
- name: go-webapp-repo
84-
plugin:
85-
kind: github-repo-scaffolding-golang
86-
version: 0.3.0
80+
plugin: github-repo-scaffolding-golang
8781
options:
8882
owner: IronCore864
8983
repo: go-webapp-devstream-demo
9084
branch: main
9185
image_repo: ironcore864/go-webapp-devstream-demo
9286
- name: golang-demo-actions
93-
plugin:
94-
kind: githubactions-golang
95-
version: 0.3.0
87+
plugin: githubactions-golang
9688
dependsOn: ["go-webapp-repo.github-repo-scaffolding-golang"]
9789
options:
9890
owner: ${{go-webapp-repo.github-repo-scaffolding-golang.outputs.owner}}
@@ -116,4 +108,4 @@ In the example above:
116108
- We put `go-webapp-repo.github-repo-scaffolding-golang` as dependency by using the `dependsOn` keyword.
117109
- We used `go-webapp-repo.github-repo-scaffolding-golang`'s output as input for the `githubactions-golang` plugin.
118110

119-
Pay attention to the `${{ xxx }}` part in the example. `${{ TOOL_NAME.TOOL_KIND.outputs.var}}` is the syntax for using an output.
111+
Pay attention to the `${{ xxx }}` part in the example. `${{ TOOL_NAME.PLUGIN.outputs.var}}` is the syntax for using an output.

0 commit comments

Comments
 (0)