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

Extend cut_release GHA workflow with release revert mechanism #745

Merged
merged 5 commits into from
Nov 16, 2021

Conversation

ytsarev
Copy link
Member

@ytsarev ytsarev commented Nov 16, 2021

Signed-off-by: Yury Tsarev [email protected]

* Delete tag and release on associated revert commit
* Conditional expression fix/simplification according to
  https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#jobsjob_idif

Signed-off-by: Yury Tsarev <[email protected]>
jkremser
jkremser previously approved these changes Nov 16, 2021
Copy link
Member

@jkremser jkremser left a comment

Choose a reason for hiding this comment

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

looks good, but might be dangerous if someone deletes the tag manually and then also does the revert. That would delete the last but one release.

We might be paranoid and check if the version we are downgrading into in the Chart.yaml == git describe --abbrev=0 --tags ${tag}^ (previous tag in git)

Probably overkill, though + we should be able to catch this in the PR review

@ytsarev
Copy link
Member Author

ytsarev commented Nov 16, 2021

@jkremser really good point, let me try to amend

@ytsarev
Copy link
Member Author

ytsarev commented Nov 16, 2021

@jkremser amended, please check

k0da
k0da previously approved these changes Nov 16, 2021
Signed-off-by: Yury Tsarev <[email protected]>
@ytsarev
Copy link
Member Author

ytsarev commented Nov 16, 2021

@jkremser make sense, amended

@ytsarev ytsarev requested review from jkremser and k0da November 16, 2021 13:00
@ytsarev
Copy link
Member Author

ytsarev commented Nov 16, 2021

Release tag and release deletion tested in my fork https://github.com/ytsarev/k8gb/runs/4226165824?check_suite_focus=true
image

@ytsarev ytsarev merged commit 913319e into master Nov 16, 2021
@ytsarev ytsarev deleted the cut-release-from-other-end branch November 16, 2021 15:18
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.

4 participants