Skip to content

Commit 064c80f

Browse files
committed
Tag first minor release with .0 patch version
The first kernel release of a minor version like 6.16 doesn't include a patch version. It therefore only gets the 6.16 tag. Subsequent versions like 6.16.1 get both a 6.16 and a 6.16.1 tag. This means that later patch releases overwrite the only tag for the first minor release. It is not possible to refer to that version therefore. Tag the first minor release with a .0 patch version so that 6.16.0 stays around. Signed-off-by: Lorenz Bauer <[email protected]>
1 parent d3cbad7 commit 064c80f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build-and-push.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ jobs:
6969
images: ghcr.io/${{ github.repository_owner }}/ci-kernels
7070
flavor: latest=false
7171
tags: |
72-
type=raw,value=${{ inputs.kernel_version }}
73-
type=match,pattern=^\d+\.\d+,group=0,value=${{ inputs.kernel_version }}
72+
type=pep440,pattern={{major}}.{{minor}},value=${{ inputs.kernel_version }}
73+
type=pep440,pattern={{major}}.{{minor}}.{{patch}},value=${{ inputs.kernel_version }}
7474
type=raw,value=${{ inputs.static_tag }},enable=${{ inputs.static_tag != '' }}
7575
7676
labels: |
@@ -85,8 +85,8 @@ jobs:
8585
images: ghcr.io/${{ github.repository_owner }}/ci-kernels
8686
flavor: latest=false
8787
tags: |
88-
type=raw,value=${{ inputs.kernel_version }},suffix=-debug
89-
type=match,pattern=^\d+\.\d+,group=0,value=${{ inputs.kernel_version }},suffix=-debug
88+
type=pep440,pattern={{major}}.{{minor}},value=${{ inputs.kernel_version }},suffix=-debug
89+
type=pep440,pattern={{major}}.{{minor}}.{{patch}},value=${{ inputs.kernel_version }},suffix=-debug
9090
type=raw,value=${{ inputs.static_tag }},enable=${{ inputs.static_tag != '' }},suffix=-debug
9191
9292
labels: |

0 commit comments

Comments
 (0)