1313 PLATFORMS_AMD64_FIPS : " +all linux/amd64"
1414 PLATFORMS_ARM64_FIPS : " +all linux/arm64"
1515
16+ # This section is used to define the plugins that will be used in the pipeline.
17+ # See https://buildkite.com/docs/pipelines/integrations/plugins/using#using-yaml-anchors-with-plugins
18+ common :
19+ - dockerhub_login_plugin : &dockerhub_login_plugin
20+ elastic/vault-docker-login#v0.6.0:
21+ secret_path : ' kv/ci-shared/observability-github-secrets/shared/docker/dockerhub/observabilityrobots'
22+ - docker_elastic_login_plugin : &docker_elastic_login_plugin
23+ elastic/vault-docker-login#v0.6.0:
24+ secret_path : ' kv/ci-shared/platform-ingest/elastic_docker_registry'
25+
1626steps :
1727 # we use concurrency gates (https://buildkite.com/blog/concurrency-gates)
1828 # to implement two FIFO queues for DRA-snapshot and DRA-staging
@@ -107,6 +117,9 @@ steps:
107117 - limit : 1
108118 artifact_paths :
109119 - build/distributions/**/*
120+ plugins :
121+ - *dockerhub_login_plugin
122+ - *docker_elastic_login_plugin
110123 matrix :
111124 - auditbeat
112125 - filebeat
@@ -140,6 +153,9 @@ steps:
140153 - limit : 1
141154 artifact_paths :
142155 - build/distributions/**/*
156+ plugins :
157+ - *dockerhub_login_plugin
158+ - *docker_elastic_login_plugin
143159 matrix :
144160 - auditbeat
145161 - filebeat
@@ -173,6 +189,9 @@ steps:
173189 retry :
174190 automatic :
175191 - limit : 1
192+ plugins :
193+ - *dockerhub_login_plugin
194+ - *docker_elastic_login_plugin
176195 artifact_paths :
177196 - build/distributions/**/*
178197
@@ -194,6 +213,9 @@ steps:
194213 - limit : 1
195214 artifact_paths :
196215 - build/distributions/**/*
216+ plugins :
217+ - *dockerhub_login_plugin
218+ - *docker_elastic_login_plugin
197219 matrix :
198220 - x-pack/auditbeat
199221 - x-pack/filebeat
@@ -217,6 +239,9 @@ steps:
217239 - limit : 1
218240 artifact_paths :
219241 - build/distributions/**/*
242+ plugins :
243+ - *dockerhub_login_plugin
244+ - *docker_elastic_login_plugin
220245 matrix :
221246 - x-pack/auditbeat
222247 - x-pack/filebeat
@@ -242,6 +267,9 @@ steps:
242267 - limit : 1
243268 artifact_paths :
244269 - build/distributions/**/*
270+ plugins :
271+ - *dockerhub_login_plugin
272+ - *docker_elastic_login_plugin
245273
246274 - group : Packaging Staging
247275 key : packaging-staging
@@ -267,6 +295,9 @@ steps:
267295 - limit : 1
268296 artifact_paths :
269297 - build/distributions/**/*
298+ plugins :
299+ - *dockerhub_login_plugin
300+ - *docker_elastic_login_plugin
270301 matrix :
271302 - auditbeat
272303 - filebeat
@@ -301,6 +332,9 @@ steps:
301332 - limit : 1
302333 artifact_paths :
303334 - build/distributions/**/*
335+ plugins :
336+ - *dockerhub_login_plugin
337+ - *docker_elastic_login_plugin
304338 matrix :
305339 - auditbeat
306340 - filebeat
@@ -337,6 +371,9 @@ steps:
337371 - limit : 1
338372 artifact_paths :
339373 - build/distributions/**/*
374+ plugins :
375+ - *dockerhub_login_plugin
376+ - *docker_elastic_login_plugin
340377
341378 - label : " STAGING: {{matrix}} Linux/amd64 FIPS"
342379 env :
@@ -358,6 +395,9 @@ steps:
358395 - limit : 1
359396 artifact_paths :
360397 - build/distributions/**/*
398+ plugins :
399+ - *dockerhub_login_plugin
400+ - *docker_elastic_login_plugin
361401 matrix :
362402 - x-pack/auditbeat
363403 - x-pack/filebeat
@@ -383,6 +423,9 @@ steps:
383423 - limit : 1
384424 artifact_paths :
385425 - build/distributions/**/*
426+ plugins :
427+ - *dockerhub_login_plugin
428+ - *docker_elastic_login_plugin
386429 matrix :
387430 - x-pack/auditbeat
388431 - x-pack/filebeat
@@ -410,6 +453,9 @@ steps:
410453 - limit : 1
411454 artifact_paths :
412455 - build/distributions/**/*
456+ plugins :
457+ - *dockerhub_login_plugin
458+ - *docker_elastic_login_plugin
413459
414460 - group : DRA publish
415461 key : dra
@@ -432,6 +478,8 @@ steps:
432478 provider : gcp
433479 image : " ${IMAGE_UBUNTU_X86_64}"
434480 machineType : " ${GCP_DEFAULT_MACHINE_TYPE}"
481+ plugins :
482+ - *docker_elastic_login_plugin
435483
436484 - label : DRA Staging
437485 # TODO remove OR clause below (see earlier comment)
@@ -452,6 +500,8 @@ steps:
452500 provider : gcp
453501 image : " ${IMAGE_UBUNTU_X86_64}"
454502 machineType : " ${GCP_DEFAULT_MACHINE_TYPE}"
503+ plugins :
504+ - *docker_elastic_login_plugin
455505
456506 - wait
457507
0 commit comments