Skip to content

Commit 705cc59

Browse files
author
Lachlan Donald
authored
Merge pull request #590 from buildkite/bump-agent-to-3.12.0
Bump agent to 3.12.0
2 parents a9b87ef + 475e3ac commit 705cc59

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,20 @@ update-stack: build/aws-stack.yml env-STACK_NAME
126126
--capabilities CAPABILITY_IAM CAPABILITY_NAMED_IAM \
127127
--parameters "$$(cat config.json)"
128128

129+
129130
# -----------------------------------------
130131
# Other
131132

133+
AGENT_VERSION ?= $(shell curl -Lfs "https://buildkite.com/agent/releases/latest?platform=linux&arch=amd64" | grep version | cut -d= -f2)
134+
135+
bump-agent-version:
136+
sed -i.bak -E "s/\[Buildkite Agent v.*\]/[Buildkite Agent v$(AGENT_VERSION)]/g" README.md
137+
sed -i.bak -E "s/AGENT_VERSION=.+/AGENT_VERSION=$(AGENT_VERSION)/g" packer/linux/scripts/install-buildkite-agent.sh
138+
sed -i.bak -E "s/\\\$$AGENT_VERSION = \".+\"/\$$AGENT_VERSION = \"$(AGENT_VERSION)\"/g" packer/windows/scripts/install-buildkite-agent.ps1
139+
rm README.md.bak packer/linux/scripts/install-buildkite-agent.sh.bak packer/windows/scripts/install-buildkite-agent.ps1.bak
140+
git add README.md packer/linux/scripts/install-buildkite-agent.sh packer/windows/scripts/install-buildkite-agent.ps1
141+
git commit -m "Bump buildkite-agent to v$(AGENT_VERSION)"
142+
132143
validate: build/aws-stack.yml
133144
aws cloudformation validate-template \
134145
--output text \

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ If you really want to store your secrets unencrypted, you can disable it entirel
108108
## What’s On Each Machine?
109109

110110
* [Amazon Linux 2 LTS](https://aws.amazon.com/amazon-linux-2/)
111-
* [Buildkite Agent v3.11.3](https://buildkite.com/docs/agent)
111+
* [Buildkite Agent v3.12.0](https://buildkite.com/docs/agent)
112112
* [Docker 18.09.5](https://www.docker.com)
113113
* [Docker Compose 1.24.0](https://docs.docker.com/compose/)
114114
* [aws-cli](https://aws.amazon.com/cli/) - useful for performing any ops-related tasks

packer/linux/scripts/install-buildkite-agent.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
set -eu -o pipefail
33

4-
AGENT_VERSION=3.11.5
4+
AGENT_VERSION=3.12.0
55

66
echo "Installing dependencies..."
77
sudo yum update -y -q

packer/windows/scripts/install-buildkite-agent.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Stop script execution when a non-terminating error occurs
22
$ErrorActionPreference = "Stop"
33

4-
$AGENT_VERSION = "3.11.5"
4+
$AGENT_VERSION = "3.12.0"
55

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

0 commit comments

Comments
 (0)