Skip to content

Commit e06e15e

Browse files
committed
fix jdk download
1 parent 09306fc commit e06e15e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/helpers/docker/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ RUN apt-get update && apt-get install -y curl wget zip
44

55
RUN ARCH=$(dpkg --print-architecture) && \
66
if [ "$ARCH" = "amd64" ]; then \
7-
wget -O jre.zip https://builds.openlogic.com/downloadJDK/openlogic-openjdk/21.0.8+9/openlogic-openjdk-21.0.8+9-linux-x64.zip; \
7+
wget -O jre.tar.gz https://builds.openlogic.com/downloadJDK/openlogic-openjdk/21.0.8+9/openlogic-openjdk-21.0.8+9-linux-x64.tar.gz; \
88
elif [ "$ARCH" = "arm64" ]; then \
99
wget -O jre.zip https://builds.openlogic.com/downloadJDK/openlogic-openjdk/21.0.8+9/openlogic-openjdk-21.0.8+9-mac-x64.zip; \
1010
else \
1111
echo "Unsupported architecture: $ARCH" && exit 1; \
1212
fi
13-
RUN unzip jre.zip
14-
RUN mv jdk-openlogic-openjdk-21.0.8+9-linux-x64 jre || mv openlogic-openjdk-21.0.8+9-mac-x64/jdk-21.0.8.jdk jre
13+
RUN unzip jre.zip || tar xvfz jre.tar.gz
14+
RUN mv openlogic-openjdk-21.0.8+9-linux-x64 jre || mv openlogic-openjdk-21.0.8+9-mac-x64/jdk-21.0.8.jdk jre
1515
ADD ./cli ./cli
1616
ADD ./core ./core
1717
ADD ./plugin-interface ./plugin-interface

0 commit comments

Comments
 (0)