File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -204,10 +204,15 @@ update-stack: build/aws-stack.yml env-STACK_NAME
204
204
205
205
AGENT_VERSION ?= $(shell curl -Lfs "https://buildkite.com/agent/releases/latest?platform=linux&arch=amd64" | grep version | cut -d= -f2)
206
206
207
+ SED ?= sed
208
+ ifeq ($(shell uname) , Darwin)
209
+ SED = gsed
210
+ endif
211
+
207
212
bump-agent-version :
208
- sed -Ei " s/\[Buildkite Agent v.*\]/[Buildkite Agent v$( AGENT_VERSION) ]/g" README.md
209
- sed -Ei " s/AGENT_VERSION=.+/AGENT_VERSION=$( AGENT_VERSION) /g" packer/linux/scripts/install-buildkite-agent.sh
210
- sed -Ei " s/\\\$ $AGENT_VERSION = \" .+\" /\$ $AGENT_VERSION = \" $( AGENT_VERSION) \" /g" packer/windows/scripts/install-buildkite-agent.ps1
213
+ $( SED ) -Ei " s/\[Buildkite Agent v.*\]/[Buildkite Agent v$( AGENT_VERSION) ]/g" README.md
214
+ $( SED ) -Ei " s/AGENT_VERSION=.+/AGENT_VERSION=$( AGENT_VERSION) /g" packer/linux/scripts/install-buildkite-agent.sh
215
+ $( SED ) -Ei " s/\\\$ $AGENT_VERSION = \" .+\" /\$ $AGENT_VERSION = \" $( AGENT_VERSION) \" /g" packer/windows/scripts/install-buildkite-agent.ps1
211
216
212
217
validate : build/aws-stack.yml
213
218
aws --no-cli-pager cloudformation validate-template \
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ sudo mkdir -p /var/lib/buildkite-agent/.aws
15
15
sudo cp /tmp/conf/aws/config /var/lib/buildkite-agent/.aws/config
16
16
sudo chown -R buildkite-agent:buildkite-agent /var/lib/buildkite-agent/.aws
17
17
18
- AGENT_VERSION=3.56 .0
18
+ AGENT_VERSION=3.57 .0
19
19
echo " Downloading buildkite-agent v${AGENT_VERSION} stable..."
20
20
sudo curl -Lsf -o /usr/bin/buildkite-agent-stable \
21
21
" https://download.buildkite.com/agent/stable/${AGENT_VERSION} /buildkite-agent-linux-${ARCH} "
Original file line number Diff line number Diff line change 1
1
# Stop script execution when a non-terminating error occurs
2
2
$ErrorActionPreference = " Stop"
3
3
4
- $AGENT_VERSION = " 3.56 .0"
4
+ $AGENT_VERSION = " 3.57 .0"
5
5
6
6
Write-Output " Creating bin dir..."
7
7
New-Item - ItemType directory - Path C:\buildkite- agent\bin
You can’t perform that action at this time.
0 commit comments