Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support installing specific versions via script #3069

Merged
merged 3 commits into from
Nov 6, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Add and remove quotes in bash substitution
Co-authored-by: Josh Deprez <[email protected]>
jordandcarter and DrJosh9000 authored Nov 6, 2024

Verified

This commit was signed with the committer’s verified signature.
commit 6fb90aebb817c44effd9b58a39a7fac6366c858c
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
@@ -81,7 +81,7 @@ else
exit 1
fi

if [[ "${BUILDKITE_AGENT_VERSION:-"latest"}" == "latest" ]]; then
if [[ "${BUILDKITE_AGENT_VERSION:-latest}" == "latest" ]]; then
echo -e "Finding latest release..."

RELEASE_INFO_URL="https://buildkite.com/agent/releases/latest?platform=${PLATFORM}&arch=${ARCH}&system=${SYSTEM}&machine=${MACHINE}"
@@ -95,7 +95,7 @@ if [[ "${BUILDKITE_AGENT_VERSION:-"latest"}" == "latest" ]]; then
DOWNLOAD_FILENAME="$(echo "${LATEST_RELEASE}" | awk -F= '/filename=/ { print $2 }')"
DOWNLOAD_URL="$( echo "${LATEST_RELEASE}" | awk -F= '/url=/ { print $2 }')"
else
VERSION=$BUILDKITE_AGENT_VERSION
VERSION="${BUILDKITE_AGENT_VERSION}"
DOWNLOAD_FILENAME="buildkite-agent-${PLATFORM}-${ARCH}-${VERSION}.tar.gz"
DOWNLOAD_URL="https://github.com/buildkite/agent/releases/download/v${VERSION}/${DOWNLOAD_FILENAME}"
fi