mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-22 06:01:05 -05:00
Use canonical method to retrieve Jar file
This commit is contained in:
parent
20700fdb55
commit
2a180b0776
1 changed files with 3 additions and 8 deletions
11
Dockerfile
11
Dockerfile
|
@ -244,19 +244,14 @@ RUN apk add --no-cache rakudo zef \
|
||||||
######################
|
######################
|
||||||
# Install CheckStyle #
|
# Install CheckStyle #
|
||||||
######################
|
######################
|
||||||
&& CHECKSTYLE_LATEST=$(curl -s https://api.github.com/repos/checkstyle/checkstyle/releases/latest \
|
&& curl --retry 5 --retry-delay 5 -sSL \
|
||||||
| grep browser_download_url \
|
"$(curl -s https://api.github.com/repos/checkstyle/checkstyle/releases/latest | jq -r '.assets[0].browser_download_url')" \
|
||||||
| grep ".jar" \
|
|
||||||
| cut -d '"' -f 4) \
|
|
||||||
&& curl --retry 5 --retry-delay 5 -sSL "$CHECKSTYLE_LATEST" \
|
|
||||||
--output /usr/bin/checkstyle \
|
--output /usr/bin/checkstyle \
|
||||||
##############################
|
##############################
|
||||||
# Install google-java-format #
|
# Install google-java-format #
|
||||||
##############################
|
##############################
|
||||||
&& GOOGLE_JAVA_FORMAT_VERSION=$(curl -s https://github.com/google/google-java-format/releases/latest \
|
|
||||||
| cut -d '"' -f 2 | cut -d '/' -f 8 | sed -e 's/v//g') \
|
|
||||||
&& curl --retry 5 --retry-delay 5 -sSL \
|
&& curl --retry 5 --retry-delay 5 -sSL \
|
||||||
"https://github.com/google/google-java-format/releases/download/v$GOOGLE_JAVA_FORMAT_VERSION/google-java-format-$GOOGLE_JAVA_FORMAT_VERSION-all-deps.jar" \
|
"$(curl -s https://api.github.com/repos/google/google-java-format/releases/latest | jq -r '.assets | .[] | select(.browser_download_url | contains("all-deps.jar")) | .browser_download_url')" \
|
||||||
--output /usr/bin/google-java-format \
|
--output /usr/bin/google-java-format \
|
||||||
#################################
|
#################################
|
||||||
# Install luacheck and luarocks #
|
# Install luacheck and luarocks #
|
||||||
|
|
Loading…
Reference in a new issue