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

Improvements to scripts/prepare-release.sh #846

Conversation

marquiz
Copy link
Contributor

@marquiz marquiz commented Jul 8, 2022

Improve the release preparation script. The main motivation is to make the golang version fixed for release builds.

  • option -b to not generate assets
    Implement a new command line option -b to prevent the script from
    creating release assets (Helm chart).
  • option -k to specify the signing key
    Make the GPG signing an optional argument. It doesn't make much sense to
    require that when no assets are being generated (i.e. when -b is
    used).
  • patch golang version in Makefile
    Make it mandatory to specify a golang version with -g when running the
    script (and patching repo content). The given version will be patched
    into the Makefile to fix the version used in the release build - it is
    meant to use a exact point release (like 1.18.3) to get reproducible
    builds.

Depends on #836

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 8, 2022
@marquiz
Copy link
Contributor Author

marquiz commented Jul 8, 2022

Depends on #836

/hold

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. labels Jul 8, 2022
Implement a new command line option "-b" to prevent the script from
creating release assets (Helm chart).
Make the GPG signing an optional argument. It doesn't make much sense to
require that when no assets are being generated (i.e. when "-b" is
used).
Make it mandatory to specify a golang version with "-g" when running the
script (and patching repo content). The given version will be patched
into the Makefile to fix the version used in the release build - it is
meant to use a exact point release (like 1.18.3) to get reproducible
builds.
@marquiz marquiz force-pushed the devel/prepare-release-golang-version branch from 917556e to 989565d Compare August 9, 2022 05:23
@marquiz
Copy link
Contributor Author

marquiz commented Aug 9, 2022

#836 was merged

/unhold
/assign @ArangoGutierrez

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 9, 2022
Copy link
Contributor

@ArangoGutierrez ArangoGutierrez left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 9, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ArangoGutierrez, marquiz

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

@k8s-ci-robot k8s-ci-robot merged commit 07e9d5b into kubernetes-sigs:master Aug 9, 2022
@marquiz marquiz deleted the devel/prepare-release-golang-version branch August 10, 2022 05:32
@marquiz marquiz mentioned this pull request Dec 20, 2022
22 tasks
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. 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.

3 participants