Skip to content

Commit 5c304e3

Browse files
committed
unify jdk handling
1 parent d6bb32a commit 5c304e3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/helpers/docker/Dockerfile

Lines changed: 4 additions & 4 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.tar.gz https://builds.openlogic.com/downloadJDK/openlogic-openjdk/21.0.8+9/openlogic-openjdk-21.0.8+9-linux-x64.tar.gz; \
7+
wget -O jre.tar.gz https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.8+9/OpenJDK21U-jdk_x64_linux_hotspot_21.0.8_9.tar.gz; \
88
elif [ "$ARCH" = "arm64" ]; then \
9-
wget -O jre.zip https://builds.openlogic.com/downloadJDK/openlogic-openjdk/21.0.8+9/openlogic-openjdk-21.0.8+9-mac-x64.zip; \
9+
wget -O jre.tar.gz https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.8+9/OpenJDK21U-jdk_aarch64_linux_hotspot_21.0.8_9.tar.gz; \
1010
else \
1111
echo "Unsupported architecture: $ARCH" && exit 1; \
1212
fi
13-
RUN unzip jre.zip || tar xvfz jre.tar.gz
14-
RUN mv openlogic-openjdk-21.0.8+9-linux-x64 jre && ls jre || mv openlogic-openjdk-21.0.8+9-mac-x64/jdk-21.0.8.jdk jre && ls jre
13+
RUN tar xvfz jre.tar.gz
14+
RUN mv jdk-21.0.8+9 jre
1515
ADD ./cli ./cli
1616
ADD ./core ./core
1717
ADD ./plugin-interface ./plugin-interface

0 commit comments

Comments
 (0)