-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Alias docker tags without Keycloak minor/patch version
- Loading branch information
1 parent
7eb7675
commit 64547c2
Showing
2 changed files
with
12 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,6 +103,12 @@ jobs: | |
- name: Expose GitHub Runtime | ||
uses: crazy-max/[email protected] | ||
|
||
- name: Compute SemVer parts of Keycloak version | ||
id: keycloak_semver | ||
uses: madhead/semver-utils@v3 | ||
with: | ||
version: ${{ matrix.env.KEYCLOAK_VERSION }} | ||
|
||
- name: Set up Docker Build Metadata | ||
id: docker_meta | ||
uses: docker/[email protected] | ||
|
@@ -116,6 +122,9 @@ jobs: | |
type=ref,event=pr | ||
type=semver,event=tag,pattern={{version}} | ||
type=raw,event=tag,value=latest,enable=${{ !contains(github.ref_name, 'rc') }} | ||
# alias tags without Keycloak minor/patch version | ||
type=semver,event=tag,pattern={{version}},suffix=-${{ steps.keycloak_semver.outputs.major }} | ||
type=raw,event=tag,value=latest,enable=${{ !contains(github.ref_name, 'rc') }},suffix=-${{ steps.keycloak_semver.outputs.major }} | ||
labels: | | ||
maintainer=adorsys GmbH & Co. KG | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters