File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,10 @@ RUN JAVA_HOME=/usr/lib/jvm/java-17-openjdk mvn clean install -DskipTests=true
2828FROM registry.access.redhat.com/ubi9/ubi-minimal AS index-download
2929RUN microdnf install -y wget zip && microdnf clean all && rm -rf /var/cache/dnf
3030WORKDIR /maven-index-data
31- # TODO: get latest release when we get to update them periodically
32- RUN wget --quiet https://github.com/konveyor/maven-search-index/releases/download/v0.0.1/maven-index-data-v0.0.1.zip -O maven-index-data.zip && unzip maven-index-data.zip && rm maven-index-data.zip
31+ RUN DOWNLOAD_URL=$(wget --quiet -O - https://api.github.com/repos/konveyor/maven-search-index/releases/latest | grep '"browser_download_url".*maven-index-data.*\. zip' | sed -E 's/.*"browser_download_url": "([^"]+)".*/\1 /' ) && \
32+ wget --quiet ${DOWNLOAD_URL} -O maven-index-data.zip && \
33+ unzip maven-index-data.zip && \
34+ rm maven-index-data.zip
3335
3436FROM registry.access.redhat.com/ubi9/ubi-minimal
3537# Java 1.8 is required for backwards compatibility with older versions of Gradle
You can’t perform that action at this time.
0 commit comments