From b694a772a444b2e7f1c3d5cb5c97e8ed578f712b Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 24 Apr 2024 17:17:23 +0300 Subject: [PATCH] Add Iron Bank validation Buildkite pipeline (#39179) (#39182) This commit migrated the Buildkite Iron Bank validation pipeline for x-pack/heartbeat from Jenkins. Relates https://github.com/elastic/ingest-dev/issues/3235 (cherry picked from commit c0914160f01734e23b35e7b4202b801a206888bd) Co-authored-by: Dimitrios Liappis --- .buildkite/ironbank-validation.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .buildkite/ironbank-validation.yml diff --git a/.buildkite/ironbank-validation.yml b/.buildkite/ironbank-validation.yml new file mode 100644 index 00000000000..1184cc75361 --- /dev/null +++ b/.buildkite/ironbank-validation.yml @@ -0,0 +1,26 @@ +# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json + +env: + # Other deps + ASDF_MAGE_VERSION: 1.15.0 + +steps: + - label: ":package: :test_tube: Package and Validate Iron Bank for x-pack/heartbeat" + command: | + set -euo pipefail + export BEAT_VERSION=$$(make get-version) + echo "~~~ Using BEAT_VERSION: $$BEAT_VERSION" + cd x-pack/heartbeat + echo "--- Package x-pack/heartbeat for the artifacts consumed by the Iron Bank docker context" + make -C ironbank package + echo "--- Prepare the Iron Bank container context" + mage ironbank + echo "--- Build and validate the Iron Bank docker context for x-pack/heartbeat" + make -C ironbank validate-ironbank + agents: + provider: "gcp" + image: "family/platform-ingest-beats-ubuntu-2204" + machineType: "n2-standard-8" + artifact_paths: + - "x-pack/heartbeat/build/distributions/*" + - "x-pack/heartbeat/build/heartbeat-ironbank-*-docker-build-context/*"