Skip to content

Commit

Permalink
[CI] Update Buildkite configuration for tags in main pipeline (#4469)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrodm authored Feb 14, 2025
1 parent 8aa73ff commit fbd06e0
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions catalog-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 one used by the buildkite-pr-bot
filter_condition: >-
build.pull_request.id == null || (build.creator.name == 'elasticmachine' && build.pull_request.id != null)
env:
Expand Down Expand Up @@ -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 one used by the buildkite-pr-bot
filter_condition: >-
build.pull_request.id == null || (build.creator.name == 'elasticmachine' && build.pull_request.id != null)
env:
Expand Down Expand Up @@ -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 one used 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
Expand Down

0 comments on commit fbd06e0

Please sign in to comment.