Skip to content

Commit ae46cd3

Browse files
authored
build: use match instead of pep440 for stable tag selection (#2250)
1 parent b89844d commit ae46cd3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/build-multiarch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ jobs:
126126
# and each variant (including main one) gets the tag with the variant suffix, such as 2023.1.1-java17
127127
type=ref,event=tag,suffix=-${{ matrix.variant }}
128128
# latest repo tag gets a moving 'stable' image tag applied to the main variant
129-
type=pep440,value=stable,enable=${{ matrix.variant == env.MAIN_VARIANT }},pattern={{version}}
129+
type=match,value=stable,enable=${{ matrix.variant == env.MAIN_VARIANT }},pattern=\d+\.\d+\.\d+
130130
# for building test/* branch images
131131
type=ref,event=branch,suffix=-${{ matrix.variant }},enable=${{ github.ref_name != 'master' }}
132132
#

docs/versions/java.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@
1111
cannot be cast to class java.net.URLClassLoader
1212
```
1313

14-
When using the image `itzg/minecraft-server` without a tag, the `latest` image tag is implied from the table below. To use a different version of Java, please use an alternate tag to run your Minecraft server container.
14+
When using the image `itzg/minecraft-server` without a tag, the `latest` image tag is implied from the table below. To use a different version of Java, please use an alternate tag to run your Minecraft server container. The `stable` tag is similar to `latest`; however, it tracks [the most recent repository release/tag](https://github.com/itzg/docker-minecraft-server/releases/latest).
1515

1616
| Tag name | Java version | Linux | JVM Type | Architecture |
1717
|-------------------|--------------|--------|-------------|-------------------|
1818
| latest | 17 | Ubuntu | Hotspot | amd64,arm64,armv7 |
19+
| stable | 17 | Ubuntu | Hotspot | amd64,arm64,armv7 |
1920
| java8 | 8 | Alpine | Hotspot | amd64 |
2021
| java8-jdk | 8 | Ubuntu | Hotspot+JDK | amd64 |
2122
| java8-multiarch | 8 | Ubuntu | Hotspot | amd64,arm64,armv7 |

0 commit comments

Comments
 (0)