-
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
5 changed files
with
42 additions
and
19 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,35 @@ | ||
#!/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" | ||
|
||
changeset_applies() { | ||
local changeset=$1 | ||
if are_files_changed "$changeset"; then | ||
echo true | ||
else | ||
echo false | ||
fi | ||
} | ||
|
||
SETUP_GVM_VERSION="v0.5.1" | ||
WORKSPACE="$(pwd)" | ||
BIN="${WORKSPACE}/bin" | ||
HW_TYPE="$(uname -m)" | ||
PLATFORM_TYPE="$(uname)" | ||
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 |
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