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

[BOP-55] CI for releases #9

Merged
merged 3 commits into from
Nov 3, 2023
Merged

[BOP-55] CI for releases #9

merged 3 commits into from
Nov 3, 2023

Conversation

nwneisen
Copy link
Collaborator

@nwneisen nwneisen commented Nov 3, 2023

https://mirantis.jira.com/browse/BOP-55

What this PR does

Adds a CI for the release process that triggers when a release is created on the github page

Testing

Tested this on my fork of the repo. Made sure the push commands had the correct tags but failed as expected due to my fork on having credentials to the registry

Notes

This is based off of #8. There is a lot of duplicate code from the PR. It should be reviewed first and then I will rebase this PR.

@nwneisen nwneisen changed the title Bop 55 ci on release [BOP-55] Ci for releases Nov 3, 2023
@nwneisen nwneisen changed the title [BOP-55] Ci for releases [BOP-55] CI for releases Nov 3, 2023
docs/creating-a-release.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@ranyodh ranyodh left a comment

Choose a reason for hiding this comment

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

This is great! Please see my comment. Overall, this looks awesome.

docs/creating-a-release.md Outdated Show resolved Hide resolved
.github/workflows/push-to-ghcr.yml Outdated Show resolved Hide resolved
docs/CI.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@ranyodh ranyodh left a comment

Choose a reason for hiding this comment

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

LGTM

@nwneisen nwneisen merged commit 9147e4c into Mirantis:main Nov 3, 2023
3 checks passed
@nwneisen nwneisen deleted the BOP-55-CI-on-release branch November 3, 2023 22:14

on:
release:
types: [prereleased]
Copy link
Collaborator

Choose a reason for hiding this comment

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

@nwneisen Can we also run this workflow when a "Release" is created. Or is there a reason for using running it when a pre-release is created?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It can also be run for published instead.

I use prerelease so that everything can be created and checked before it officially went out. It's just a last check for any small mistakes that stop the need for following up with a small fix release or if any automations run and try to pull the release artifacts before they are created.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Same idea as what someone might use a draft release for except GHA has no support for draft releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants