Skip to content

Commit 1cc73a8

Browse files
authored
ci(docker): release alias for major and minor version series (#2881)
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
1 parent ff469cb commit 1cc73a8

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ jobs:
147147
${{ env.DOCKER_HUB }}
148148
ghcr.io/${{ github.repository }}
149149
tags: |
150-
type=raw,value=${{ env.VERSION }}
150+
type=semver,pattern={{raw}}
151+
type=semver,pattern=v{{major}}.{{minor}}
152+
type=semver,pattern=v{{major}}
151153
labels: |
152154
org.opencontainers.image.created=${{ steps.ts.outputs.TIMESTAMP }}
153155

docs/getting-started/docker.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ Our Docker images are available with the following tags:
1818

1919
- `latest`: Always points to the most recent stable release.
2020
- Version tags (e.g., `v3.0.0`): For specific stable versions.
21+
- Major version aliases (e.g., `v3`): Alias for the latest stable release in the respective major version series.
22+
- Minor version aliases (e.g., `v3.0`): Alias for the latest stable release in the respective minor version series.
2123
- `develop`: Rolling release/nightly builds for using the latest changes (use with caution).
2224
:::
2325

docs/migration-guide.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ Our Docker images are available with the following tags:
3939

4040
- `latest`: Always points to the most recent stable release.
4141
- Version tags (e.g., `v3.0.0`): For specific stable versions.
42+
- Major version aliases (e.g., `v3`): Alias for the latest stable release in the respective major version series.
43+
- Minor version aliases (e.g., `v3.0`): Alias for the latest stable release in the respective minor version series.
4244
- `develop`: Rolling release/nightly builds for using the latest changes (use with caution).
4345
:::
4446

0 commit comments

Comments
 (0)