Skip to content

Commit 5ba6436

Browse files
committed
Added ability to specify docker tag
1 parent b509b8d commit 5ba6436

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

hooks/command

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ args=(
1515
"--env" "PLUGIN_ID=$BUILDKITE_PLUGIN_PLUGIN_LINTER_ID"
1616
)
1717

18+
TAG=${BUILDKITE_PLUGIN_PLUGIN_LINTER_IMAGE_VERSION:-v2.0.1}
19+
1820
if [[ -n "${BUILDKITE_PLUGIN_PLUGIN_LINTER_README:-}" ]] ; then
1921
args+=("--env" "PLUGIN_README=$BUILDKITE_PLUGIN_PLUGIN_LINTER_README")
2022
fi
2123

22-
docker run "${args[@]}" buildkite/plugin-linter
24+
docker run "${args[@]}" buildkite/plugin-linter:"${TAG}"

0 commit comments

Comments
 (0)