diff --git a/images/actions/java/Dockerfile b/images/actions/java/Dockerfile index 8d4dbb9..270ab73 100644 --- a/images/actions/java/Dockerfile +++ b/images/actions/java/Dockerfile @@ -3,6 +3,10 @@ FROM git.euph.dev/actions/runner-basic:latest ARG PACKAGE_VERSION ENV PACKAGE_VERSION=${PACKAGE_VERSION} +RUN sudo zypper -n addrepo https://download.opensuse.org/repositories/home:ecsos/$(grep -oP '(?<=^VERSION_ID=).+' /etc/os-release | tr -d '"')/home:ecsos.repo +RUN sudo zypper -n --gpg-auto-import-keys refresh +RUN sudo zypper -n update + RUN \ java_version=$(echo ${PACKAGE_VERSION}) && \ sudo zypper -n install "java-${java_version}-openjdk" \ No newline at end of file