Skip to content

Commit

Permalink
Switch to goreleaser changelogs (#1386) (#1387)
Browse files Browse the repository at this point in the history
Signed-off-by: Borja Clemente <[email protected]>

Signed-off-by: Borja Clemente <[email protected]>

Signed-off-by: Borja Clemente <[email protected]>
  • Loading branch information
clebs authored Sep 22, 2022
1 parent f701fbc commit 0cc4fc0
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
50 changes: 26 additions & 24 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,37 @@ before:
hooks:
- make resolve
builds:
- env:
- CGO_ENABLED=0
ldflags: -s -w -X github.com/kyma-project/cli/cmd/kyma/version.Version={{.Version}}
main: ./cmd/
goos:
- darwin
- linux
- windows
ignore:
- goos: darwin
goarch: 386
- env:
- CGO_ENABLED=0
ldflags: -s -w -X github.com/kyma-project/cli/cmd/kyma/version.Version={{.Version}}
main: ./cmd/
goos:
- darwin
- linux
- windows
ignore:
- goos: darwin
goarch: 386
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
format_overrides:
- goos: windows
format: zip
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
use: github
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- "^docs:"
- "^test:"
- "^bump"
6 changes: 2 additions & 4 deletions hack/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@ main() {
delete_stable_tag
get_new_release_version
get_current_release_version
# generate release changelog
docker run --rm -v "${CLI_DIR}":/repository -w /repository -e FROM_TAG="${CURRENT_RELEASE_VERSION}" -e NEW_RELEASE_TITLE="${NEW_RELEASE_VERSION}" -e GITHUB_AUTH="${BOT_GITHUB_TOKEN}" -e CONFIG_FILE=.github/package.json eu.gcr.io/kyma-project/changelog-generator:0.2.0 sh /app/generate-release-changelog.sh
# release CLI with release notes generated by changelog-generator
curl -sL https://git.io/goreleaser | VERSION=v0.118.2 bash -s -- --release-notes .changelog/release-changelog.md
# release CLI with release notes generated by goreleaser
curl -sL https://git.io/goreleaser | VERSION=v1.11.4 bash -s --
}

main

0 comments on commit 0cc4fc0

Please sign in to comment.