Skip to content

Commit 0fee696

Browse files
authored
Merge pull request #240 from buildkite-plugins/toote_bash_compatibility
Bash <4.2 compatibility
2 parents 28cd551 + 681132c commit 0fee696

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ steps:
1313
- command: "go build -o dist/my-app ."
1414
artifact_paths: "./dist/my-app"
1515
plugins:
16-
- docker#v5.4.0:
16+
- docker#v5.5.1:
1717
image: "golang:1.11"
1818
```
1919
@@ -23,7 +23,7 @@ Windows images are also supported:
2323
steps:
2424
- command: "dotnet publish -c Release -o published"
2525
plugins:
26-
- docker#v5.4.0:
26+
- docker#v5.5.1:
2727
image: "microsoft/dotnet:latest"
2828
always-pull: true
2929
```
@@ -35,7 +35,7 @@ If you want to control how your command is passed to the docker container, you c
3535
```yml
3636
steps:
3737
- plugins:
38-
- docker#v5.4.0:
38+
- docker#v5.5.1:
3939
image: "mesosphere/aws-cli"
4040
always-pull: true
4141
command: ["s3", "sync", "s3://my-bucket/dist/", "/app/dist"]
@@ -50,7 +50,7 @@ Note: If you are utilizing Buildkite's [Elastic CI Stack S3 Secrets plugin](http
5050
steps:
5151
- command: "yarn install; yarn run test"
5252
plugins:
53-
- docker#v5.4.0:
53+
- docker#v5.5.1:
5454
image: "node:7"
5555
always-pull: true
5656
environment:
@@ -68,7 +68,7 @@ steps:
6868
env:
6969
MY_SPECIAL_BUT_PUBLIC_VALUE: kittens
7070
plugins:
71-
- docker#v5.4.0:
71+
- docker#v5.5.1:
7272
image: "node:7"
7373
always-pull: true
7474
propagate-environment: true
@@ -82,7 +82,7 @@ steps:
8282
env:
8383
MY_SPECIAL_BUT_PUBLIC_VALUE: kittens
8484
plugins:
85-
- docker#v5.4.0:
85+
- docker#v5.5.1:
8686
image: "node:7"
8787
always-pull: true
8888
propagate-aws-auth-tokens: true
@@ -94,7 +94,7 @@ You can pass in additional volumes to be mounted. This is useful for running Doc
9494
steps:
9595
- command: "docker build . -t image:tag; docker push image:tag"
9696
plugins:
97-
- docker#v5.4.0:
97+
- docker#v5.5.1:
9898
image: "docker:latest"
9999
always-pull: true
100100
volumes:
@@ -107,7 +107,7 @@ You can disable the default behaviour of mounting in the checkout to `workdir`:
107107
steps:
108108
- command: "npm start"
109109
plugins:
110-
- docker#v5.4.0:
110+
- docker#v5.5.1:
111111
image: "node:7"
112112
always-pull: true
113113
mount-checkout: false

hooks/command

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,8 @@ if [[ -n "${BUILDKITE_PLUGIN_DOCKER_MEMORY_SWAPPINESS:-}" ]]; then
450450
args+=("--memory-swappiness=${BUILDKITE_PLUGIN_DOCKER_MEMORY_SWAPPINESS}")
451451
fi
452452

453-
# Handle entrypoint if set (or empty), and default shell to disabled
454-
if [[ -v BUILDKITE_PLUGIN_DOCKER_ENTRYPOINT ]] ; then
453+
# Handle entrypoint if set, and default shell to disabled
454+
if [[ -n ${BUILDKITE_PLUGIN_DOCKER_ENTRYPOINT+x} ]]; then
455455
args+=("--entrypoint" "${BUILDKITE_PLUGIN_DOCKER_ENTRYPOINT}")
456456
shell_disabled=1
457457
fi

0 commit comments

Comments
 (0)