-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
118 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,38 @@ | ||
#!/usr/bin/env bash | ||
|
||
source .buildkite/env-scripts/util.sh | ||
|
||
docs_changeset="^.*\.(asciidoc|md)$ | ||
deploy/kubernetes/.*-kubernetes.yaml" | ||
packaging_changeset="^dev-tools/packaging/ | ||
^.go-version" | ||
|
||
REPO="beats" | ||
SETUP_GVM_VERSION="v0.5.1" | ||
WORKSPACE="$(pwd)" | ||
BIN="${WORKSPACE}/bin" | ||
HW_TYPE="$(uname -m)" | ||
PLATFORM_TYPE="$(uname)" | ||
TMP_FOLDER="tmp.${REPO}" | ||
|
||
# Env vars for Packaging stage | ||
DOCKER_REGISTRY="docker.elastic.co" | ||
SNAPSHOT=true | ||
VERSION=$(make get-version | tr -d '\n') | ||
ONLY_DOCS=$(changeset_applies "$docs_changeset") | ||
PACKAGING_CHANGES=$(changeset_applies "$packaging_changeset") | ||
GO_MOD_CHANGES=$(changeset_applies "^go.mod") | ||
|
||
export SETUP_GVM_VERSION | ||
export WORKSPACE | ||
export BIN | ||
export HW_TYPE | ||
export PLATFORM_TYPE | ||
export PACKAGING_CHANGES | ||
export ONLY_DOCS | ||
export GO_MOD_CHANGES | ||
export DOCKER_REGISTRY | ||
export SNAPSHOT | ||
export VERSION | ||
export REPO | ||
export TMP_FOLDER |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
source .buildkite/env-scripts/util.sh | ||
|
||
unset_secrets | ||
|
||
if [[ "$BUILDKITE_PIPELINE_SLUG" == "filebeat" && "$BUILDKITE_STEP_KEY" == package* ]]; then | ||
google_cloud_logout_active_account | ||
docker logout "${DOCKER_REGISTRY}" | ||
fi | ||
|
||
# Ensure that any temporal files created during any step are removed | ||
cleanup |