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

Create an automated release workflow #80

Merged
merged 2 commits into from
Apr 20, 2022

Conversation

detiber
Copy link
Contributor

@detiber detiber commented Apr 5, 2022

Description

  • When a tag is created and pushed that has a v prefix:

    • Automatically generate release notes with github
    • Push the pre-built sha-based image with a new tag for the version
    • Automatically create a release in github
  • Updates the CI workflow to not run on tags with a v prefix

I modeled this off the automated process we are currently using for the sandbox releases.

Why is this needed

  • Automates the release process, which is currently manual
  • Adds a tagged image associated with the release version

How Has This Been Tested?

It's the same process as what has been merged to boots in tinkerbell/smee#234

- When a tag is created and pushed that has a v prefix:
  - Automatically generate release notes with github
  - Push the pre-built sha-based image with a new tag for the version
  - Automatically create a release in github

- Updates the CI workflow to not run on tags with a v prefix
@detiber
Copy link
Contributor Author

detiber commented Apr 5, 2022

/assign @jacobweinstock

@codecov
Copy link

codecov bot commented Apr 5, 2022

Codecov Report

Merging #80 (c4c33eb) into main (782db1c) will not change coverage.
The diff coverage is n/a.

❗ Current head c4c33eb differs from pull request most recent head d0d85cd. Consider uploading reports for the commit d0d85cd to get more accurate results

@@           Coverage Diff           @@
##             main      #80   +/-   ##
=======================================
  Coverage   50.83%   50.83%           
=======================================
  Files           3        3           
  Lines         417      417           
=======================================
  Hits          212      212           
  Misses        174      174           
  Partials       31       31           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 782db1c...d0d85cd. Read the comment docs.

For version v0.x.y:

1. Create the annotated tag
> NOTE: To use your GPG signature when pushing the tag, use `SIGN_TAG=1 ./contrib/tag-release.sh v0.x.y` instead)
Copy link
Member

Choose a reason for hiding this comment

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

I thought I asked this already, perhaps I have. Is there any technical reason we can't use GH's release UI?

@displague displague added the ready-to-merge Signal to Mergify to merge the PR. label Apr 20, 2022
@mergify mergify bot merged commit 6bceb59 into tinkerbell:main Apr 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge Signal to Mergify to merge the PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants