Skip to content

Commit 3a23c84

Browse files
committed
Do semver coersion
1 parent 5e2c057 commit 3a23c84

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/docker-publish.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,20 @@ jobs:
8686
type=raw,value=mongo${{ matrix.mongo }}
8787
type=raw,value=latest,enable=${{ matrix.mongo == 7 }}
8888
89+
# Semver-utils doesn't coerce, so do that first...
90+
- name: Coerce version to semver-compatible
91+
id: semver
92+
uses: matt-usurp/validate-semver@v2
93+
with:
94+
version: ${{ matrix.mongo }}
95+
8996
# For mongo versions >= 8, we can avoid pulling debian-slim when building
9097
# because Ubuntu noble is used as the base, which has qemu 8.2 in it.
9198
- name: Check mongo version to choose qemu source
9299
id: qemu_source_check
93100
uses: madhead/semver-utils@latest
94101
with:
95-
version: ${{ matrix.mongo }}
102+
version: ${{ steps.semver.outputs.version }}
96103
satisfies: '>=8'
97104

98105
# Build and push Docker image with Buildx (don't push on PR)

0 commit comments

Comments
 (0)