Skip to content

Commit

Permalink
updated packaging group steps
Browse files Browse the repository at this point in the history
  • Loading branch information
oakrizan committed Jan 29, 2024
1 parent 937fb3c commit 8a71049
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 38 deletions.
35 changes: 3 additions & 32 deletions .buildkite/auditbeat/auditbeat-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ env:
IMAGE_WIN_2019: "family/core-windows-2019"
IMAGE_WIN_2022: "family/core-windows-2022"
IMAGE_RHEL9: "family/core-rhel-9"
IMAGE_MACOS: "generic-13-ventura-x64"

steps:
- group: "Auditbeat Mandatory Testing"
Expand Down Expand Up @@ -74,7 +75,7 @@ steps:

- group: "Extended Testing"
key: "extended-tests"
if: build.env("BUILDKITE_PULL_REQUEST") != "false" || build.env("GITHUB_PR_TRIGGER_COMMENT") == "auditbeat extended tests"
if: build.env("BUILDKITE_PULL_REQUEST") != "false" || build.env("GITHUB_PR_TRIGGER_COMMENT") == "auditbeat for extended support"

steps:
- label: ":linux: ARM64 Unit Tests"
Expand All @@ -101,7 +102,7 @@ steps:
context: "auditbeat/Extended: MacOS Unit Tests"
agents:
provider: "orka"
imagePrefix: "generic-13-ventura-x64"
imagePrefix: "${IMAGE_MACOS}"
artifact_paths: "auditbeat/build/*.xml"

- group: "Windows Extended Testing"
Expand Down Expand Up @@ -136,33 +137,3 @@ steps:
steps:
- 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"
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"
4 changes: 2 additions & 2 deletions .buildkite/pull-requests.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
"set_commit_status": true,
"build_on_commit": true,
"build_on_comment": true,
"trigger_comment_regex": "^/test auditbeat$",
"always_trigger_comment_regex": "^/test auditbeat$",
"trigger_comment_regex": "^/test auditbeat(for (arm|macos|windows|extended support))?$",
"always_trigger_comment_regex": "^/test auditbeat(for (arm|macos|windows|extended support))?$",
"skip_ci_labels": [ ],
"skip_target_branches": [ ],
"skip_ci_on_only_changed": [ ],
Expand Down
4 changes: 0 additions & 4 deletions auditbeat/magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ package main

import (
"fmt"
"log"
"os"
"time"

"github.com/magefile/mage/mg"
Expand Down Expand Up @@ -97,8 +95,6 @@ func Package() {
start := time.Now()
defer func() { fmt.Println("package ran for", time.Since(start)) }()

log.SetOutput(os.Stdout)

devtools.UseElasticBeatOSSPackaging()
devtools.PackageKibanaDashboardsFromBuildDir()
auditbeat.CustomizePackaging(auditbeat.OSSPackaging)
Expand Down

0 comments on commit 8a71049

Please sign in to comment.