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 63d9f2c
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 35 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

0 comments on commit 63d9f2c

Please sign in to comment.