adorsys / keycloak-config-cli

Import YAML/JSON-formatted configuration files into Keycloak - Configuration as Code for Keycloak.
Apache License 2.0
703 stars 129 forks source link

Alias docker tags without Keycloak minor/patch version #1069

Closed daniel-shuy closed 6 days ago

daniel-shuy commented 1 week ago

What this PR does / why we need it:

Currently, the format of Docker tags is <keycloak-config-cli version>-<keycloak library version>, e.g. 6.0.2-22.0.4. Since the Keycloak library is backwards compatible to within the same major version, usually the keycloak-config-cli user will want to use the latest minor/patch version of the Keycloak library, without having to manually update the image tag everytime there is a new release.

For each release, in addition to the existing Docker tags (x.x.x-x.x.x), the updated Actions workflow also tags the Docker image with the format x.x.x-x (e.g. 6.0.2-22, latest-22).

Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #808

Special notes for your reviewer:

This was originally addressed in #850, but didn't work due to a typo. This PR contains the fix, as well as some improvements.

PR Readiness Checklist:

Complete these before marking the PR as ready to review:

jonasvoelcker commented 4 days ago

Hi @daniel-shuy,

after some releases due to a broken plugin we are now certain that all tags get created as desired, thanks a lot :)

https://hub.docker.com/r/adorsys/keycloak-config-cli/tags?name=6.1.3