From 63d9f2c3db412ae2effb3b11083d23e33b7c10aa Mon Sep 17 00:00:00 2001 From: Olga Naidjonoka Date: Wed, 24 Jan 2024 10:35:51 +0200 Subject: [PATCH] enabled synamic packaging step --- .buildkite/auditbeat/auditbeat-pipeline.yml | 62 ++++++++++---------- .buildkite/auditbeat/scripts/package-step.sh | 7 ++- 2 files changed, 34 insertions(+), 35 deletions(-) diff --git a/.buildkite/auditbeat/auditbeat-pipeline.yml b/.buildkite/auditbeat/auditbeat-pipeline.yml index 902f4e2dfd4..44dec0ddcd3 100644 --- a/.buildkite/auditbeat/auditbeat-pipeline.yml +++ b/.buildkite/auditbeat/auditbeat-pipeline.yml @@ -134,37 +134,35 @@ steps: # - "extended-tests-win" steps: -# - label: Package pipeline + - label: Package pipeline + commands: ".buildkite/auditbeat/scripts/package-step.sh | buildkite-agent pipeline upload" + +# - label: ":ubuntu: Packaging Linux X86" +# key: "package-linux-x86" # env: # PLATFORMS: "+all linux/amd64 linux/arm64 windows/amd64 darwin/amd64 darwin/arm64" -# commands: ".buildkite/auditbeat/scripts/package-step.sh | buildkite-agent pipeline upload" - - - label: ":ubuntu: Packaging Linux X86" - key: "package-linux-x86" - env: - PLATFORMS: "+all linux/amd64 linux/arm64 windows/amd64 darwin/amd64 darwin/arm64" - command: - - ".buildkite/auditbeat/scripts/package.sh" - notify: - - github_commit_status: - context: "auditbeat/Packaging: Linux X86" - agents: - provider: "gcp" - image: "${IMAGE_UBUNTU_X86_64}" - - - label: ":linux: Packaging Linux ARM" - key: "package-linux-arm" - env: - PLATFORMS: "linux/arm64" - PACKAGES: "docker" - command: - - ".buildkite/auditbeat/scripts/package.sh" - notify: - - github_commit_status: - context: "auditbeat/Packaging: Linux ARM" - agents: - provider: "aws" - imagePrefix: "${IMAGE_UBUNTU_ARM_64}" - instanceType: "t4g.large" - artifact_paths: - - "auditbeat/build/distributions/*.tar.gz" +# command: +# - ".buildkite/auditbeat/scripts/package.sh" +# notify: +# - github_commit_status: +# context: "auditbeat/Packaging: Linux X86" +# agents: +# provider: "gcp" +# image: "${IMAGE_UBUNTU_X86_64}" +# +# - label: ":linux: Packaging Linux ARM" +# key: "package-linux-arm" +# env: +# PLATFORMS: "linux/arm64" +# PACKAGES: "docker" +# command: +# - ".buildkite/auditbeat/scripts/package.sh" +# notify: +# - github_commit_status: +# context: "auditbeat/Packaging: Linux ARM" +# agents: +# provider: "aws" +# imagePrefix: "${IMAGE_UBUNTU_ARM_64}" +# instanceType: "t4g.large" +# artifact_paths: +# - "auditbeat/build/distributions/*.tar.gz" diff --git a/.buildkite/auditbeat/scripts/package-step.sh b/.buildkite/auditbeat/scripts/package-step.sh index 269b4058c40..8b348bafa71 100755 --- a/.buildkite/auditbeat/scripts/package-step.sh +++ b/.buildkite/auditbeat/scripts/package-step.sh @@ -17,11 +17,13 @@ if are_files_changed "$changeset"; then steps: - label: ":ubuntu: Packaging Linux X86" key: "package-linux-x86" + env: + PLATFORMS: "+all linux/amd64 linux/arm64 windows/amd64 darwin/amd64 darwin/arm64" command: - ".buildkite/auditbeat/scripts/package.sh" notify: - github_commit_status: - context: "auditbeat/Packaging: Linux X86" + context: "Auditbeat/Packaging: Linux X86" agents: provider: "gcp" image: "${IMAGE_UBUNTU_X86_64}" @@ -35,11 +37,10 @@ if are_files_changed "$changeset"; then - ".buildkite/auditbeat/scripts/package.sh" notify: - github_commit_status: - context: "auditbeat/Packaging: Linux ARM" + context: "Auditbeat/Packaging: ARM" agents: provider: "aws" imagePrefix: "${IMAGE_UBUNTU_ARM_64}" instanceType: "t4g.large" EOF fi -