Skip to content

Commit fbd06e0

Browse files
authored
[CI] Update Buildkite configuration for tags in main pipeline (#4469)
1 parent 8aa73ff commit fbd06e0

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

catalog-info.yaml

+13-5
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,17 @@ spec:
4545
spec:
4646
repository: elastic/fleet-server
4747
pipeline_file: ".buildkite/pipeline.yml"
48-
branch_configuration: "main 9.* 8.* 7.*"
48+
# patterns for tags are required to trigger the step that publishes the docker.elastic.co/package-registry/distribution images
49+
# step with key: "release-package-registry"
50+
branch_configuration: "main 9.* 8.* 7.* v9.* v8.* v7.*"
4951
provider_settings:
5052
build_pull_request_forks: false
5153
build_pull_requests: true # requires filter_enabled and filter_condition settings as below when used with buildkite-pr-bot
52-
build_tags: false
54+
build_tags: true
5355
filter_enabled: true
54-
# TODO: what's the reason for this filter?
56+
# filter condition to ensure that builds triggered are created from branch (build.pull_request.id= null)
57+
# or if they are created from pull requests, just the build from the user `elasticmachine` is triggered.
58+
# this user is the one used by the buildkite-pr-bot
5559
filter_condition: >-
5660
build.pull_request.id == null || (build.creator.name == 'elasticmachine' && build.pull_request.id != null)
5761
env:
@@ -95,7 +99,9 @@ spec:
9599
build_tags: false
96100
build_branches: false
97101
filter_enabled: true
98-
# TODO: what's the reason for this filter?
102+
# filter condition to ensure that builds triggered are created from branch (build.pull_request.id= null)
103+
# or if they are created from pull requests, just the build from the user `elasticmachine` is triggered.
104+
# this user is the one used by the buildkite-pr-bot
99105
filter_condition: >-
100106
build.pull_request.id == null || (build.creator.name == 'elasticmachine' && build.pull_request.id != null)
101107
env:
@@ -177,7 +183,9 @@ spec:
177183
build_tags: false
178184
build_branches: false
179185
filter_enabled: true
180-
# TODO: what's the reason for this filter?
186+
# filter condition to ensure that builds triggered are created from branch (build.pull_request.id= null)
187+
# or if they are created from pull requests, just the build from the user `elasticmachine` is triggered.
188+
# this user is the one used by the buildkite-pr-bot
181189
filter_condition: >-
182190
build.pull_request.id == null || (build.creator.name == 'elasticmachine' && build.pull_request.id != null)
183191
cancel_intermediate_builds: true

0 commit comments

Comments
 (0)