Skip to content

Commit 1dca888

Browse files
committed
Use docker to run shfmt
1 parent eb19a4f commit 1dca888

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.buildkite/pipeline.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ steps:
99

1010
- label: ":bash: shfmt"
1111
key: fmt
12-
command: shfmt --binary-next-line --indent 2 --list .
12+
command: docker run --rm -u "$$(id -u):$$(id -g)" -v "$$PWD:/mnt" -w /mnt mvdan/shfmt:v3-alpine --binary-next-line --indent 2 --list .
1313
agents:
1414
queue: "${BUILDKITE_AGENT_META_DATA_QUEUE}"
1515

0 commit comments

Comments
 (0)