Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added build-system/bin/yq_linux_amd64.gz
Binary file not shown.
Binary file added build-system/bin/yq_linux_arm64.gz
Binary file not shown.
11 changes: 5 additions & 6 deletions build-system/scripts/setup_env
Original file line number Diff line number Diff line change
Expand Up @@ -92,19 +92,18 @@ echo export BRANCH=$BRANCH >> $BASH_ENV
if [ -n "$COMMIT_HASH" ]; then
# Our alpine build image has yq installed, ubuntu build instances download from github.
if [ ! -f /etc/alpine-release ]; then
mkdir -p $BUILD_SYSTEM_PATH/bin
echo export PATH=$BUILD_SYSTEM_PATH/bin:\$PATH >> $BASH_ENV
YQ_PATH=$BUILD_SYSTEM_PATH/bin/yq
BIN_PATH=$BUILD_SYSTEM_PATH/bin
echo export PATH=$BIN_PATH:\$PATH >> $BASH_ENV
ARCH=$(uname -m)
if [ "$ARCH" == "x86_64" ]; then
curl -Ls https://github.com/mikefarah/yq/releases/download/v4.35.1/yq_linux_amd64 > $YQ_PATH
gunzip -c $BIN_PATH/yq_linux_amd64 > $BIN_PATH/yq
elif [ "$ARCH" == "aarch64" ]; then
curl -Ls https://github.com/mikefarah/yq/releases/download/v4.35.1/yq_linux_arm64 > $YQ_PATH
gunzip -c $BIN_PATH/yq_linux_arm64 > $BIN_PATH/yq
else
echo "Unknown arch: $ARCH"
exit 1
fi
chmod +x $YQ_PATH
chmod +x $BIN_PATH/yq
fi

# Install and ensure correct permissions on build instance key.
Expand Down