-
Notifications
You must be signed in to change notification settings - Fork 10
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
Fix redpanda-operator release piepeline #469
Conversation
.buildkite/pipeline.yml
Outdated
// 3. NIGHTLY_RELEASE envvar isn't set (paranoid check) | ||
// 4. This isn't a pull request (paranoid check) | ||
(build.tag =~ /^v/ || build.tag =~ /^operator\/v/) && | ||
(build.branch == "main" || build.branch =~ /^release\//) && | ||
(build.branch == "main" || build.branch =~ /^release\// || build.branch =~ /^v/ || build.branch =~ /^operator\/v/) && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove the checks on main
and release/
as we know they'll never be relevant? We could alternatively remove all branch level checks as they're synonymous with tag
and specifying both may be misleading.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree removed branch check
.buildkite/pipeline.yml
Outdated
@@ -81,11 +81,11 @@ steps: | |||
if: | | |||
// Only run if: | |||
// 1. There's a tag and it's of the form 'v*' or 'operator/v*' | |||
// 2. Source branch is main or release/* | |||
// 2. Source branch is main or release/* (during release the branch will be equal to tag name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add the URL from the PR description to this comment. If we remove the branch checks, let's preserve the comment about branch == tag so no one forgets and tries to add it back in later :)
dd277da
to
98a42c9
Compare
98a42c9
to
abc198e
Compare
When redpanda-operator github repository recieves new tag it triggers buildkite build. As the following statement from buildkite community forum the branch has the same value as tag. ``` Due to how tags work in git, a branch is not easily inferred, nor is it required to check out a tag. For this reason we’re setting BUILDKITE_BRANCH and BUILDKITE_TAG to the same value. This is the intended behaviour. Our docs aren’t really clear on this and we’re updating them now. ``` Reference https://forum.buildkite.community/t/branch-names-vs-tag-names/974/2
abc198e
to
d908b6a
Compare
When redpanda-operator github repository recieves new tag it triggers buildkite build. As the following statement from buildkite community forum the branch has the same value as tag.
Reference
https://forum.buildkite.community/t/branch-names-vs-tag-names/974/2