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] Update Buildkite configuration for tags in main pipeline #4469

Merged
merged 2 commits into from
Feb 14, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions catalog-info.yaml
Original file line number Diff line number Diff line change
@@ -45,13 +45,17 @@ spec:
spec:
repository: elastic/fleet-server
pipeline_file: ".buildkite/pipeline.yml"
branch_configuration: "main 9.* 8.* 7.*"
# patterns for tags are required to trigger the step that publishes the docker.elastic.co/package-registry/distribution images
# step with key: "release-package-registry"
branch_configuration: "main 9.* 8.* 7.* v9.* v8.* v7.*"
provider_settings:
build_pull_request_forks: false
build_pull_requests: true # requires filter_enabled and filter_condition settings as below when used with buildkite-pr-bot
build_tags: false
build_tags: true
filter_enabled: true
# TODO: what's the reason for this filter?
# filter condition to ensure that builds triggered are created from branch (build.pull_request.id= null)
# or if they are created from pull requests, just the build from the user `elasticmachine` is triggered.
# this user is the user by the buildkite-pr-bot
filter_condition: >-
build.pull_request.id == null || (build.creator.name == 'elasticmachine' && build.pull_request.id != null)
env:
@@ -95,7 +99,9 @@ spec:
build_tags: false
build_branches: false
filter_enabled: true
# TODO: what's the reason for this filter?
# filter condition to ensure that builds triggered are created from branch (build.pull_request.id= null)
# or if they are created from pull requests, just the build from the user `elasticmachine` is triggered.
# this user is the user by the buildkite-pr-bot
filter_condition: >-
build.pull_request.id == null || (build.creator.name == 'elasticmachine' && build.pull_request.id != null)
env:
@@ -177,7 +183,9 @@ spec:
build_tags: false
build_branches: false
filter_enabled: true
# TODO: what's the reason for this filter?
# filter condition to ensure that builds triggered are created from branch (build.pull_request.id= null)
# or if they are created from pull requests, just the build from the user `elasticmachine` is triggered.
# this user is the user by the buildkite-pr-bot
filter_condition: >-
build.pull_request.id == null || (build.creator.name == 'elasticmachine' && build.pull_request.id != null)
cancel_intermediate_builds: true