This repository was archived by the owner on Dec 11, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +34
-1
lines changed Expand file tree Collapse file tree 3 files changed +34
-1
lines changed Original file line number Diff line number Diff line change 21
21
uses : actions/setup-go@v3
22
22
with :
23
23
go-version : 1.19
24
+ - name : Tag manifest images
25
+ run : |
26
+ mkdir -p ./releases/manifests
27
+ cat ./config/namespace/1*.yaml > ./releases/manifests/triggermesh-core.yaml
28
+ find ./config/2*.yaml -exec cat {} \; -exec echo \; -exec echo --- \; -exec echo \; >> ./releases/manifests/triggermesh-core.yaml
29
+ find ./config/3*.yaml -exec cat {} \; -exec echo \; -exec echo --- \; -exec echo \; >> ./releases/manifests/triggermesh-core-crds.yaml
30
+ cat ./config/configmaps/*.yaml >> ./releases/manifests/triggermesh-core.yaml
31
+ TAG=${GITHUB_REF#refs/*/}
32
+ sed 's/:dev/:'"$TAG"'/g' ./config/5*.yaml >> ./releases/manifests/triggermesh-core.yaml
24
33
- name : Run GoReleaser
25
34
uses : goreleaser/goreleaser-action@v3
26
35
with :
Original file line number Diff line number Diff line change 20
20
21
21
# Build artifacts
22
22
/releases /
23
+ /releases-go /
23
24
24
25
# Test artifacts
25
26
* .test
Original file line number Diff line number Diff line change 1
- dist : releases
1
+ # If named releases will delete the existing releases folder
2
+ # which contains manifests used at this action.
3
+ dist : releases-go
2
4
3
5
builds :
4
6
- id : default
@@ -37,3 +39,24 @@ changelog:
37
39
- " ^docs:"
38
40
- " ^test:"
39
41
- " ^Merge pull request"
42
+
43
+ release :
44
+
45
+ header : |
46
+ ## Installation
47
+
48
+ Install all TriggerMesh Core custom resources:
49
+
50
+ ```console
51
+ kubectl apply -f https://github.com/triggermesh/triggermesh-core/releases/download/{{ .Tag }}/triggermesh-core-crds.yaml
52
+ ```
53
+
54
+ Install the TriggerMesh Core controller:
55
+
56
+ ```console
57
+ kubectl apply -f https://github.com/triggermesh/triggermesh-core/releases/download/{{ .Tag }}/triggermesh-core.yaml
58
+ ```
59
+
60
+ extra_files :
61
+ - glob : ./releases/manifests/triggermesh-core.yaml
62
+ - glob : ./releases/manifests/triggermesh-core-crds.yaml
You can’t perform that action at this time.
0 commit comments