Skip to content

Commit

Permalink
Merge pull request #1247 from buildkite/agent-3.57
Browse files Browse the repository at this point in the history
Agent 3.57
  • Loading branch information
moskyb authored Oct 23, 2023
2 parents d593f59 + a415cbc commit 35e31db
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
11 changes: 8 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,15 @@ update-stack: build/aws-stack.yml env-STACK_NAME

AGENT_VERSION ?= $(shell curl -Lfs "https://buildkite.com/agent/releases/latest?platform=linux&arch=amd64" | grep version | cut -d= -f2)

SED ?= sed
ifeq ($(shell uname), Darwin)
SED = gsed
endif

bump-agent-version:
sed -Ei "s/\[Buildkite Agent v.*\]/[Buildkite Agent v$(AGENT_VERSION)]/g" README.md
sed -Ei "s/AGENT_VERSION=.+/AGENT_VERSION=$(AGENT_VERSION)/g" packer/linux/scripts/install-buildkite-agent.sh
sed -Ei "s/\\\$$AGENT_VERSION = \".+\"/\$$AGENT_VERSION = \"$(AGENT_VERSION)\"/g" packer/windows/scripts/install-buildkite-agent.ps1
$(SED) -Ei "s/\[Buildkite Agent v.*\]/[Buildkite Agent v$(AGENT_VERSION)]/g" README.md
$(SED) -Ei "s/AGENT_VERSION=.+/AGENT_VERSION=$(AGENT_VERSION)/g" packer/linux/scripts/install-buildkite-agent.sh
$(SED) -Ei "s/\\\$$AGENT_VERSION = \".+\"/\$$AGENT_VERSION = \"$(AGENT_VERSION)\"/g" packer/windows/scripts/install-buildkite-agent.ps1

validate: build/aws-stack.yml
aws --no-cli-pager cloudformation validate-template \
Expand Down
2 changes: 1 addition & 1 deletion packer/linux/scripts/install-buildkite-agent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ sudo mkdir -p /var/lib/buildkite-agent/.aws
sudo cp /tmp/conf/aws/config /var/lib/buildkite-agent/.aws/config
sudo chown -R buildkite-agent:buildkite-agent /var/lib/buildkite-agent/.aws

AGENT_VERSION=3.56.0
AGENT_VERSION=3.57.0
echo "Downloading buildkite-agent v${AGENT_VERSION} stable..."
sudo curl -Lsf -o /usr/bin/buildkite-agent-stable \
"https://download.buildkite.com/agent/stable/${AGENT_VERSION}/buildkite-agent-linux-${ARCH}"
Expand Down
2 changes: 1 addition & 1 deletion packer/windows/scripts/install-buildkite-agent.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Stop script execution when a non-terminating error occurs
$ErrorActionPreference = "Stop"

$AGENT_VERSION = "3.56.0"
$AGENT_VERSION = "3.57.0"

Write-Output "Creating bin dir..."
New-Item -ItemType directory -Path C:\buildkite-agent\bin
Expand Down

0 comments on commit 35e31db

Please sign in to comment.