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

ci: Limit the kernel push only to branch pushes #137

Merged
merged 1 commit into from
Jun 21, 2022

Conversation

mmlb
Copy link
Contributor

@mmlb mmlb commented Jun 21, 2022

Description

Avoids building the kernel for tag pushes.

Why is this needed

The kernel builds are currently filtering the events that cause the build depending on the path of files changed. The path filter is not evaluated for tag pushes though. This causes the kernel to be re-pushed on tags which is unexpected and confusing. I'd rather avoid confusion in the kernel build/push process if possible.

@mmlb mmlb requested a review from ScottGarman June 21, 2022 19:50
@mmlb mmlb added the ready-to-merge Signal to Mergify to merge the PR. label Jun 21, 2022
Which means we exclude all tags. This is necessary because according to
the docs[1]:

> Path filters are not evaluated for pushes of tags.

So we need to avoid building for tags. This is fine to do because the kernel
isn't versioned by tags but by the contents of the kernel/ tree. I went with
`branches: "**"` instead of `tags-ignore: "**"` because inclusion is easier
to understand vs exclusion imo.

1: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#onpushpull_requestpull_request_targetpathspaths-ignore

Signed-off-by: Manuel Mendez <[email protected]>
@mmlb mmlb force-pushed the update-kernel-push-for-tags branch from 77f3291 to c43967e Compare June 21, 2022 19:54
@mergify mergify bot merged commit d30dc22 into tinkerbell:main Jun 21, 2022
@mmlb mmlb deleted the update-kernel-push-for-tags branch June 21, 2022 20:09
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.

2 participants