Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(WIP) Release process rehaul #1375

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .chglog/CHANGELOG.tpl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{{ range .Versions }}
<a name="{{ .Tag.Name }}"></a>
## {{ if .Tag.Previous }}[{{ .Tag.Name }}]({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}){{ else }}{{ .Tag.Name }}{{ end }} ({{ datetime "2006-01-02" .Tag.Date }})

{{ range .CommitGroups -}}
### {{ .Title }}

{{ range .Commits -}}
* {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
{{ end }}
{{ end -}}

{{- if .RevertCommits -}}
### Reverts

{{ range .RevertCommits -}}
* {{ .Revert.Header }}
{{ end }}
{{ end -}}

{{- if .NoteGroups -}}
{{ range .NoteGroups -}}
### {{ .Title }}

{{ range .Notes }}
{{ .Body }}
{{ end }}
{{ end -}}
{{ end -}}
{{ end -}}
28 changes: 28 additions & 0 deletions .chglog/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
style: github
template: CHANGELOG.tpl.md
info:
title: CHANGELOG
repository_url: https://github.com/vmware/govmomi
options:
commits:
# filters:
# Type:
# - feat
# - fix
# - perf
# - refactor
commit_groups:
# title_maps:
# feat: Features
# fix: Bug Fixes
# perf: Performance Improvements
# refactor: Code Refactoring
header:
pattern: "^(\\w*)(?:\\(([\\w\\$\\.\\-\\*\\s]*)\\))?\\:\\s(.*)$"
pattern_maps:
- Type
- Scope
- Subject
notes:
keywords:
- BREAKING CHANGE
155 changes: 102 additions & 53 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,59 +1,106 @@
---
project_name: govmomi
env:
- CGO_ENABLED=0
builds:
- id: govc
goos:
- linux
- darwin
- windows
- freebsd
goarch:
- amd64
- 386
- arm64
env:
- id: govc
binary: govc
main: ./govc/
flags: -compiler gc -tags 'netgo'
ldflags: -X github.com/vmware/govmomi/version.GitVersion={{.Version}} -s -w
goos:
- linux
- darwin
- windows
- freebsd
goarch:
- arm
- amd64
- 386
- id: homebrew-govc
binary: govc
main: ./govc/
flags: -compiler gc -tags 'netgo'
ldflags: -X github.com/vmware/govmomi/version.GitVersion={{.Version}} -s -w
goos:
- darwin
goarch:
- amd64
- id: vcsim
binary: vcsim
main: ./vcsim/
flags: -compiler gc -tags 'netgo'
ldflags: -X github.com/vmware/govmomi/version.GitVersion={{.Version}} -s -w
goos:
- linux
- darwin
- windows
goarch:
- arm
- amd64
- 386
- id: homebrew-vcsim
binary: vcsim
main: ./vcsim/
flags: -compiler gc -tags 'netgo'
ldflags: -X github.com/vmware/govmomi/version.GitVersion={{.Version}} -s -w
goos:
- darwin
goarch:
- amd64
- id: toolbox
binary: toolbox
env:
- CGO_ENABLED=0
main: ./govc/main.go
binary: govc
flags: -compiler gc
ldflags: -X github.com/vmware/govmomi/govc/flags.GitVersion={{.Version}}
- id: vcsim
goos:
- linux
- darwin
- windows
- freebsd
goarch:
- amd64
- 386
- arm64
env:
- CGO_ENABLED=0
main: ./vcsim/main.go
binary: vcsim
flags: -compiler gc
ldflags: -X github.com/vmware/govmomi/vcsim/flags.GitVersion={{.Version}}
main: ./toolbox/toolbox/
flags: -compiler gc -tags 'netgo'
ldflags: -X github.com/vmware/govmomi/version.GitVersion={{.Version}} -s -w
goos:
- linux
goarch:
- amd64
- 386
archives:
- id: govcbuild
builds: ['govc']
name_template: 'govc_{{ .Os }}_{{ .Arch }}'
format: gz
format_overrides:
- goos: windows
format: zip
files:
- none*
- id: vcsimbuild
builds: ['vcsim']
name_template: 'vcsim_{{ .Os }}_{{ .Arch }}'
format: gz
format_overrides:
- goos: windows
format: zip
files:
- none*
- id: govc
builds:
- govc
name_template: 'govc_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
format: gz
format_overrides:
- goos: windows
format: zip
files:
- none*
- id: vcsim
builds:
- vcsim
name_template: 'vcsim_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
format: gz
format_overrides:
- goos: windows
format: zip
files:
- none*
- id: toolbox
builds:
- toolbox
name_template: 'toolbox_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
format: gz
files:
- none*
- id: homebrew-govc
builds:
- homebrew-govc
name_template: 'govc-homebrew_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
format: tar.gz
- id: homebrew-vcsim
builds:
- homebrew-vcsim
name_template: 'vcsim-homebrew_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
format: tar.gz
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt'
algorithm: sha256
changelog:
sort: asc
filters:
Expand All @@ -63,9 +110,10 @@ changelog:
- Merge pull request
- Merge branch
brews:
- name: govc
-
name: govc
ids:
- govc
- homebrew-govc
github:
owner: govmomi
name: homebrew-tap
Expand All @@ -79,9 +127,10 @@ brews:
system "#{bin}/govc version"
install: |
bin.install "govc"
- name: vcsim
-
name: vcsim
ids:
- vcsim
- homebrew-vcsim
github:
owner: govmomi
name: homebrew-tap
Expand Down
Loading