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

feat: Introduce goreleaser #144

Merged

Conversation

Tomasz-Smelcerz-SAP
Copy link
Member

Description

Adds goreleaser configuration and related Makefile target to enable releasing from a dedicated prowjob.
Changes proposed in this pull request:

  • Add goreleaser configuration
  • Extend Makefile

Related issue(s)
See: #134

@kyma-bot kyma-bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 23, 2023
@kyma-bot
Copy link
Contributor

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@kyma-bot kyma-bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Oct 23, 2023
@kyma-bot kyma-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 23, 2023
@Tomasz-Smelcerz-SAP Tomasz-Smelcerz-SAP marked this pull request as ready for review October 23, 2023 10:50
@Tomasz-Smelcerz-SAP Tomasz-Smelcerz-SAP requested a review from a team as a code owner October 23, 2023 10:50
@kyma-bot kyma-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Oct 23, 2023
Copy link
Contributor

@jeremyharisch jeremyharisch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rest looks fine, currently still testing

runtime-watcher/.goreleaser.yml Outdated Show resolved Hide resolved
Comment on lines 19 to 21
ignore:
- goos: darwin
goarch: 386
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we remove darwin from goos, then this can also be deleted

Comment on lines 30 to 32
format_overrides:
- goos: windows
format: zip
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, if we remove windows, then we do not need any overrides

Comment on lines 40 to 60
groups:
- title: Bug fixes
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
order: 1
- title: Dependencies
regexp: '^.*?deps(\([[:word:]]+\))??!?:.+$'
order: 2
- title: Documentation
regexp: '^.*?docs(\([[:word:]]+\))??!?:.+$'
order: 3
- title: Test suites
regexp: '^.*?test(\([[:word:]]+\))??!?:.+$'
order: 4
- title: Features
order: 0
filters:
exclude:
- "^docs:"
- "^test:"
- '^(B|b)ump'
- '^.*?chore(\([[:word:]]+\))??!?:.+$'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does not make sense to have a Documentation section, but exclude it - Thus remove the exclude statement or remove the docu group. But I would say keep the docu group and remove the exclusion. Same goes for testing.

Suggested change
groups:
- title: Bug fixes
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
order: 1
- title: Dependencies
regexp: '^.*?deps(\([[:word:]]+\))??!?:.+$'
order: 2
- title: Documentation
regexp: '^.*?docs(\([[:word:]]+\))??!?:.+$'
order: 3
- title: Test suites
regexp: '^.*?test(\([[:word:]]+\))??!?:.+$'
order: 4
- title: Features
order: 0
filters:
exclude:
- "^docs:"
- "^test:"
- '^(B|b)ump'
- '^.*?chore(\([[:word:]]+\))??!?:.+$'
groups:
- title: Bug fixes
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
order: 1
- title: Dependencies
regexp: '^.*?deps(\([[:word:]]+\))??!?:.+$'
order: 2
- title: Documentation
regexp: '^.*?docs(\([[:word:]]+\))??!?:.+$'
order: 3
- title: Test suites
regexp: '^.*?test(\([[:word:]]+\))??!?:.+$'
order: 4
- title: Features
order: 0
filters:
exclude:
- '^(B|b)ump'
- '^.*?chore(\([[:word:]]+\))??!?:.+$'

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I took it verbatim from the CLI project. Perhaps we should adjust it there too, then?

get_new_release_version
get_previous_release_version
# release watcher with release notes generated by goreleaser
curl -sL https://git.io/goreleaser | VERSION=v1.17.2 bash -s --
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets directly use latest one

Suggested change
curl -sL https://git.io/goreleaser | VERSION=v1.17.2 bash -s --
curl -sL https://git.io/goreleaser | VERSION=v1.21.2 bash -s --

@kyma-bot kyma-bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Oct 24, 2023
@kyma-bot kyma-bot added the lgtm Looks good to me! label Oct 25, 2023
@kyma-bot kyma-bot merged commit 140215f into kyma-project:main Oct 25, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm Looks good to me! size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants