diff --git a/.buildkite/pipeline.elastic-agent-binary-dra.yml b/.buildkite/pipeline.elastic-agent-binary-dra.yml index d6b640b298..f3c06b49ba 100644 --- a/.buildkite/pipeline.elastic-agent-binary-dra.yml +++ b/.buildkite/pipeline.elastic-agent-binary-dra.yml @@ -13,10 +13,10 @@ steps: # don't run snapshot builds with prereleases (non empty VERSION_QUALIFIER) unless forced (RUN_SNAPSHOT=true) if: build.env("RUN_SNAPSHOT") == "true" || (build.env('VERSION_QUALIFIER') == null && (build.branch == 'main' || build.branch =~ /^[0-9]+\.[0-9x]+\$/)) steps: - - label: ":package: Build Elastic-Agent Core Snapshot" + - label: ":package: Elastic-Agent Core Snapshot" commands: - .buildkite/scripts/steps/build-agent-core.sh - key: "build-dra-snapshot" + key: "build-dra-snapshot-x86" artifact_paths: - "build/distributions/**/*" agents: @@ -24,6 +24,21 @@ steps: machineType: "c2-standard-16" env: DRA_WORKFLOW: "snapshot" + PLATFORMS: "linux/amd64 windows/amd64 darwin/amd64 darwin/arm64" + + - label: ":package: linux/arm64 Elastic-Agent Core Snapshot" + commands: + - .buildkite/scripts/steps/build-agent-core.sh + key: "build-dra-snapshot-arm" + artifact_paths: + - "build/distributions/**/*" + agents: + provider: "aws" + instanceType: "c6g.4xlarge" + imagePrefix: "core-ubuntu-2204-aarch64" + env: + DRA_WORKFLOW: "snapshot" + PLATFORMS: "linux/arm64" - wait @@ -46,11 +61,11 @@ steps: key: "dra-core-staging" if: build.branch =~ /^[0-9]+\.[0-9x]+\$/ || build.env("RUN_STAGING") == "true" || build.env('VERSION_QUALIFIER') != null steps: - - label: ":package: Build Elastic-Agent Core staging" + - label: ":package: Elastic-Agent Core staging" commands: | source .buildkite/scripts/version_qualifier.sh .buildkite/scripts/steps/build-agent-core.sh - key: "build-dra-staging" + key: "build-dra-staging-x86" artifact_paths: - "build/distributions/**/*" agents: @@ -58,6 +73,22 @@ steps: machineType: "c2-standard-16" env: DRA_WORKFLOW: "staging" + PLATFORMS: "linux/amd64 windows/amd64 darwin/amd64 darwin/arm64" + + - label: ":package: linux/arm64 Elastic-Agent Core staging" + commands: | + source .buildkite/scripts/version_qualifier.sh + .buildkite/scripts/steps/build-agent-core.sh + key: "build-dra-staging-arm" + artifact_paths: + - "build/distributions/**/*" + agents: + provider: "aws" + instanceType: "c6g.4xlarge" + imagePrefix: "core-ubuntu-2204-aarch64" + env: + DRA_WORKFLOW: "dra-core-staging" + PLATFORMS: "linux/arm64" - wait