Skip to content

Commit 76ab0b2

Browse files
authored
Merge pull request #59 from lalten/bump-versions
Bump `shfmt` and `shellcheck` versions
2 parents 92d105f + 363b541 commit 76ab0b2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Dockerfile

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@ FROM alpine:3.16.0
22
LABEL "name"="sh-checker"
33
LABEL "maintainer"="Luiz Muller <contact@luizm.dev>"
44

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
78

89
RUN apk add --no-cache bash git jq curl checkbashisms xz \
910
&& apk add --no-cache --virtual .build-deps tar \
1011
&& wget "https://github.com/mvdan/sh/releases/download/v${shfmt_version}/shfmt_v${shfmt_version}_linux_amd64" -O /usr/local/bin/shfmt \
1112
&& chmod +x /usr/local/bin/shfmt \
1213
&& 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' \
1314
&& 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 \
1516
&& apk del --no-cache .build-deps \
1617
&& rm -rf /tmp/*
1718

0 commit comments

Comments
 (0)