keycloak/keycloak-containers

Using older version on server Dockerfile breaks Keycloak release package download.

christian-ci opened this issue · 1 comments

Describe the bug

When you change the version on the server Dockerfile to anything older than 17.0.0 it fails to build due to having the wrong URI. The change was merged on this commit. If you change the version for example to 15.1.1 to build or anything under 17.0.0 it will fail build due to not able to download the Keycloak release. Current link doesn't have legacy on the filename.

Version

15.1.1

Expected behavior

Downloads Keycloak 15.1.1 from current release link: https://github.com/keycloak/keycloak/releases/download/15.1.1/keycloak-15.1.1.tar.gz

Actual behavior

Fails to download release due to the wrong link ARG compared to actual release link:

455131d#:~:text=ARG%20KEYCLOAK_DIST%3Dhttps%3A//github.com/keycloak/keycloak/releases/download/%24KEYCLOAK_VERSION/keycloak%2Dlegacy%2D%24KEYCLOAK_VERSION.tar.gz

How to Reproduce?

Change version on the Dockerfile to 15.1.1 or another version under 17.0.0.

Anything else?

No response

With Keycloak 20 the WildFly based distribution is no longer supported. For the newer Quarkus distribution of Keycloak, check out the new documentation, or the updated container sources.