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

Bump goreleaser version and optimize get-version #2127

Merged
merged 2 commits into from
Sep 22, 2023

Conversation

vinamra28
Copy link
Member

@vinamra28 vinamra28 commented Sep 17, 2023

Changes

With go version v1.20.7, goreleaser version also need to be upgraded to v1.15.2.

Also in get-version task we were running two steps and both the steps were using same image, hence merged both into a single step. Also the task was using goreleaser image which is more than 300M in size, instead using alpine/git which is ~21M

Also use tkn hub install to install tasks from catalog so that we always use the latest one available


With goreleaser version v1.14.0, archives.replacements and
nfpms.replacements have been deprecated and we can leverage their
respective name_template and file_name_template. Also the replacements
property has been removed in v1.19.0.

Updating goreleaser.yaml as per the suggested approach specified at
https://goreleaser.com/deprecations/#archivesreplacements

Signed-off-by: vinamra28 jvinamra776@gmail.com

/kind misc

closes #2120

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • [NA] Includes tests (if functionality changed/added)
  • [NA] Run the code checkers with make check
  • [NA] Regenerate the manpages, docs and go formatting with make generated
  • Commit messages follow commit message best practices

See the contribution guide
for more details.

Release Notes

NONE

@tekton-robot tekton-robot added release-note-none Denotes a PR that doesnt merit a release note. kind/misc Categorizes issue or PR as a miscellaneuous one. labels Sep 17, 2023
@tekton-robot tekton-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Sep 17, 2023
With go version v1.20.7, goreleaser version also need to be upgraded to
v1.15.2.

Also in get-version task we were running two steps and both the
steps were using same image, hence merged both into a single step. Also
the task was using goreleaser image which is more than 300M in size,
instead using alpine/git which is ~21M

Also use tkn hub install to install tasks from catalog so that we always
use the latest one available

Signed-off-by: vinamra28 <jvinamra776@gmail.com>
With goreleaser version v1.14.0, archives.replacements and
nfpms.replacements have been deprecated and we can leverage their
respective name_template and file_name_template. Also the `replacements`
property has been removed in v1.19.0.

Updating goreleaser.yaml as per the suggested approach specified at
https://goreleaser.com/deprecations/#archivesreplacements

Signed-off-by: vinamra28 <jvinamra776@gmail.com>
@tekton-robot tekton-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Sep 18, 2023
@chmouel
Copy link
Member

chmouel commented Sep 18, 2023

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 18, 2023
@vinamra28
Copy link
Member Author

/test pull-tekton-cli-integration-tests

@vinamra28
Copy link
Member Author

/retest

@piyush-garg
Copy link
Contributor

/approve

@tekton-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: piyush-garg

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 22, 2023
@vinamra28
Copy link
Member Author

/retest

@tekton-robot tekton-robot merged commit e7befef into tektoncd:main Sep 22, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/misc Categorizes issue or PR as a miscellaneuous one. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesnt merit a release note. 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.

Update .goreleaser.yaml in order to conform with latest goreleaser changes
4 participants