File tree Expand file tree Collapse file tree 6 files changed +96
-27
lines changed
Expand file tree Collapse file tree 6 files changed +96
-27
lines changed Original file line number Diff line number Diff line change 1+ version : 2
2+ updates :
3+ - package-ecosystem : gomod
4+ directory : " /"
5+ reviewers :
6+ - WanzenBug
7+ schedule :
8+ interval : " weekly"
9+ - package-ecosystem : github-actions
10+ directory : " /"
11+ schedule :
12+ interval : " weekly"
13+ reviewers :
14+ - WanzenBug
15+ groups :
16+ ci :
17+ patterns :
18+ - " *" # Include all github-actions update in one PR
Original file line number Diff line number Diff line change 1+ name : release
12on :
2- release :
3- types : [created]
4-
3+ push :
4+ tags :
5+ - " v*.*.* "
56jobs :
6- release :
7- name : release linux/amd64
7+ goreleaser :
88 runs-on : ubuntu-latest
9- strategy :
10- matrix :
11- goarch : [amd64, s390x, arm64]
12- goos : [linux, darwin]
13- exclude :
14- - goos : darwin
15- goarch : s390x
169 steps :
17- - uses : actions/checkout@v3
18- - uses : wangyoucao577/go-release-action@v1
10+ - name : Checkout
11+ uses : actions/checkout@v4
12+ - name : Setup Go
13+ uses : actions/setup-go@v4
1914 with :
20- github_token : ${{ secrets.GITHUB_TOKEN }}
21- goos : ${{ matrix.goos }}
22- goarch : ${{ matrix.goarch }}
23- extra_files : LICENSE README.md
24- sha256sum : TRUE
25- overwrite : TRUE
15+ go-version : ' 1.20'
16+ - name : GoReleaser
17+ uses : goreleaser/goreleaser-action@v5
18+ with :
19+ version : latest
20+ args : release --rm-dist
21+ env :
22+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2623 - name : Update new version in krew-index
2724 uses : rajatjindal/krew-release-bot@v0.0.46
Original file line number Diff line number Diff line change @@ -114,3 +114,5 @@ modules.xml
114114
115115# End of https://www.toptal.com/developers/gitignore/api/intellij+all,go
116116/kubectl-linstor
117+
118+ dist /
Original file line number Diff line number Diff line change 1+ # yaml-language-server: $schema=https://goreleaser.com/static/schema.json
2+ # vim: set ts=2 sw=2 tw=0 fo=cnqoj
3+
4+ before :
5+ hooks :
6+ # You may remove this if you don't use go modules.
7+ - go mod tidy
8+ # you may remove this if you don't need go generate
9+ - go generate ./...
10+
11+ builds :
12+ - env :
13+ - CGO_ENABLED=0
14+ goos :
15+ - linux
16+ - windows
17+ - darwin
18+ goarch :
19+ - amd64
20+ - arm64
21+ - s390x
22+
23+ archives :
24+ - format : tar.gz
25+ # this name template makes the OS and Arch compatible with the results of `uname`.
26+ name_template : >-
27+ {{ .ProjectName }}_
28+ {{- .Os }}_
29+ {{- if eq .Arch "amd64" }}x86_64
30+ {{- else if eq .Arch "386" }}i386
31+ {{- else }}{{ .Arch }}{{ end }}
32+ {{- if .Arm }}v{{ .Arm }}{{ end }}
33+ # use zip for windows archives
34+ format_overrides :
35+ - goos : windows
36+ format : zip
37+
38+ changelog :
39+ sort : asc
40+ filters :
41+ exclude :
42+ - " ^docs:"
43+ - " ^test:"
Original file line number Diff line number Diff line change 1010 matchLabels :
1111 os : darwin
1212 arch : amd64
13- {{addURIAndSha "https://github.com/piraeusdatastore/kubectl-linstor/releases/download/{{ .TagName }}/kubectl-linstor- {{ .TagName }}-darwin-amd64 .tar.gz" .TagName }}
13+ {{addURIAndSha "https://github.com/piraeusdatastore/kubectl-linstor/releases/download/{{ .TagName }}/kubectl-linstor_ {{ .TagName }}_darwin_x86_64 .tar.gz" .TagName }}
1414 files :
1515 - from : ./kubectl-linstor
1616 to : .
2121 matchLabels :
2222 os : darwin
2323 arch : arm64
24- {{addURIAndSha "https://github.com/piraeusdatastore/kubectl-linstor/releases/download/{{ .TagName }}/kubectl-linstor- {{ .TagName }}-darwin-arm64 .tar.gz" .TagName }}
24+ {{addURIAndSha "https://github.com/piraeusdatastore/kubectl-linstor/releases/download/{{ .TagName }}/kubectl-linstor_ {{ .TagName }}_darwin_arm64 .tar.gz" .TagName }}
2525 files :
2626 - from : ./kubectl-linstor
2727 to : .
3232 matchLabels :
3333 os : linux
3434 arch : amd64
35- {{addURIAndSha "https://github.com/piraeusdatastore/kubectl-linstor/releases/download/{{ .TagName }}/kubectl-linstor- {{ .TagName }}-linux-amd64 .tar.gz" .TagName }}
35+ {{addURIAndSha "https://github.com/piraeusdatastore/kubectl-linstor/releases/download/{{ .TagName }}/kubectl-linstor_ {{ .TagName }}_linux_x86_64 .tar.gz" .TagName }}
3636 files :
3737 - from : ./kubectl-linstor
3838 to : .
4343 matchLabels :
4444 os : linux
4545 arch : arm64
46- {{addURIAndSha "https://github.com/piraeusdatastore/kubectl-linstor/releases/download/{{ .TagName }}/kubectl-linstor- {{ .TagName }}-linux-arm64 .tar.gz" .TagName }}
46+ {{addURIAndSha "https://github.com/piraeusdatastore/kubectl-linstor/releases/download/{{ .TagName }}/kubectl-linstor_ {{ .TagName }}_linux_arm64 .tar.gz" .TagName }}
4747 files :
4848 - from : ./kubectl-linstor
4949 to : .
5454 matchLabels :
5555 os : linux
5656 arch : s390x
57- {{addURIAndSha "https://github.com/piraeusdatastore/kubectl-linstor/releases/download/{{ .TagName }}/kubectl-linstor-{{ .TagName }}-linux-s390x.tar.gz" .TagName }}
57+ {{addURIAndSha "https://github.com/piraeusdatastore/kubectl-linstor/releases/download/{{ .TagName }}/kubectl-linstor_{{ .TagName }}_linux_s390x.tar.gz" .TagName }}
58+ files :
59+ - from : ./kubectl-linstor
60+ to : .
61+ - from : ./LICENSE
62+ to : .
63+ bin : kubectl-linstor
64+ - selector :
65+ matchLabels :
66+ os : windows
67+ arch : amd64
68+ {{addURIAndSha "https://github.com/piraeusdatastore/kubectl-linstor/releases/download/{{ .TagName }}/kubectl-linstor_{{ .TagName }}_windows_x86_64.tar.gz" .TagName }}
5869 files :
5970 - from : ./kubectl-linstor
6071 to : .
Original file line number Diff line number Diff line change 1- github.com/henvic/ctxsignal v1.0.0 h1:EvBKhGucE28G25BSRzJgXtfNQDVk0i5Ag8L/jmfT/hA =
2- github.com/henvic/ctxsignal v1.0.0 /go.mod h1:UT/zf10ZRehwLPo6UhRgzkGEoOEKSfjqhhf1lrV54To =
You can’t perform that action at this time.
0 commit comments