File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2,16 +2,17 @@ FROM alpine:3.16.0
2
2
LABEL "name" ="sh-checker"
3
3
LABEL "maintainer" ="Luiz Muller <contact@luizm.dev>"
4
4
5
- ARG shfmt_version=3.5.1
6
- ARG shellcheck_version=0.8.0
5
+ ARG shfmt_version=3.6.0
6
+ ARG shellcheck_version=0.9.0
7
+ ARG gh_version=2.23.0
7
8
8
9
RUN apk add --no-cache bash git jq curl checkbashisms xz \
9
10
&& apk add --no-cache --virtual .build-deps tar \
10
11
&& wget "https://github.com/mvdan/sh/releases/download/v${shfmt_version}/shfmt_v${shfmt_version}_linux_amd64" -O /usr/local/bin/shfmt \
11
12
&& chmod +x /usr/local/bin/shfmt \
12
13
&& wget "https://github.com/koalaman/shellcheck/releases/download/v${shellcheck_version}/shellcheck-v${shellcheck_version}.linux.x86_64.tar.xz" -O- | tar xJ -C /usr/local/bin/ --strip-components=1 --wildcards '*/shellcheck' \
13
14
&& chmod +x /usr/local/bin/shellcheck \
14
- && curl -L https://github.com/cli/cli/releases/download/v2.23.0/gh_2.23.0_linux_amd64 .tar.gz | tar xz -C /usr/local/ --strip-components=1 \
15
+ && curl -L https://github.com/cli/cli/releases/download/v${gh_version}/gh_${gh_version}_linux_amd64 .tar.gz | tar xz -C /usr/local/ --strip-components=1 \
15
16
&& apk del --no-cache .build-deps \
16
17
&& rm -rf /tmp/*
17
18
You can’t perform that action at this time.
0 commit comments