Skip to content

Commit

Permalink
debugging arm packaing
Browse files Browse the repository at this point in the history
  • Loading branch information
oakrizan committed Jan 23, 2024
1 parent 1517f15 commit 17439da
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 21 deletions.
2 changes: 2 additions & 0 deletions .buildkite/auditbeat/auditbeat-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,3 +166,5 @@ steps:
provider: "aws"
imagePrefix: "${IMAGE_UBUNTU_ARM_64}"
instanceType: "t4g.large"
artifact_paths:
- "auditbeat/build/distributions/*.tar.gz"
7 changes: 0 additions & 7 deletions .buildkite/hooks/pre-command
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

set -euo pipefail

DOCKER_REGISTRY_SECRET_PATH="kv/ci-shared/platform-ingest/docker_registry_prod"

source .buildkite/env-scripts/env.sh
source .buildkite/env-scripts/util.sh
source .buildkite/env-scripts/win-env.sh
Expand All @@ -17,8 +15,3 @@ if [[ ( "$BUILDKITE_PIPELINE_SLUG" == "filebeat" || "$BUILDKITE_PIPELINE_SLUG" =
export GOLANG_VERSION=$(cat "${WORKSPACE}/.go-version")
fi
fi

if [[ "$BUILDKITE_PIPELINE_SLUG" == "auditbeat" && "$BUILDKITE_STEP_KEY" == package* ]]; then
export DOCKER_USERNAME_SECRET=$(retry 5 vault kv get -field user "${DOCKER_REGISTRY_SECRET_PATH}")
export DOCKER_PASSWORD_SECRET=$(retry 5 vault kv get -field password "${DOCKER_REGISTRY_SECRET_PATH}")
fi
14 changes: 0 additions & 14 deletions .buildkite/hooks/pre-exit

This file was deleted.

4 changes: 4 additions & 0 deletions auditbeat/magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ package main

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

"github.com/magefile/mage/mg"
Expand Down Expand Up @@ -95,6 +97,8 @@ 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 17439da

Please sign in to comment.