-
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.
Merge branch 'main' of github.com:elastic/beats into 40185-update-inc…
…lude-matches
- Loading branch information
Showing
30 changed files
with
940 additions
and
288 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
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,22 @@ | ||
#!/usr/bin/env bash | ||
|
||
# An opinionated approach to managing the Elastic Qualifier for the DRA in a Google Bucket | ||
# instead of using a Buildkite env variable. | ||
|
||
if [[ -n "$VERSION_QUALIFIER" ]]; then | ||
echo "~~~ VERSION_QUALIFIER externally set to [$VERSION_QUALIFIER]" | ||
return 0 | ||
fi | ||
|
||
# DRA_BRANCH can be used for manually testing packaging with PRs | ||
# e.g. define `DRA_BRANCH="main"` under Options/Environment Variables in the Buildkite UI after clicking new Build | ||
BRANCH="${DRA_BRANCH:="${BUILDKITE_BRANCH:=""}"}" | ||
|
||
qualifier="" | ||
URL="https://storage.googleapis.com/dra-qualifier/${BRANCH}" | ||
if curl -sf -o /dev/null "$URL" ; then | ||
qualifier=$(curl -s "$URL") | ||
fi | ||
|
||
export VERSION_QUALIFIER="$qualifier" | ||
echo "~~~ VERSION_QUALIFIER set to [$VERSION_QUALIFIER]" |
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
Oops, something went wrong.