Skip to content

Commit

Permalink
enabled synamic packaging step
Browse files Browse the repository at this point in the history
  • Loading branch information
oakrizan committed Jan 24, 2024
1 parent 4527323 commit f5b41ab
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 36 deletions.
62 changes: 30 additions & 32 deletions .buildkite/auditbeat/auditbeat-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
7 changes: 4 additions & 3 deletions .buildkite/auditbeat/scripts/package-step.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -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

3 changes: 2 additions & 1 deletion .buildkite/auditbeat/scripts/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ set -euo pipefail

source .buildkite/env-scripts/unix-env.sh

echo ":: Evaluate Auditbeat Changes ::"
echo ":: Docker Version ::"
docker --version

echo ":: Start Packaging ::"
cd auditbeat
Expand Down

0 comments on commit f5b41ab

Please sign in to comment.