From 11fc37f9a32aef721ba70e7ee969eb9056910e58 Mon Sep 17 00:00:00 2001 From: Mladen Todorovic Date: Mon, 3 Aug 2026 18:48:21 +0200 Subject: [PATCH] Tweak version handling for upstream releases --- .github/workflows/build.yml | 5 +++-- README.md | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3842ee0..39b331b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,7 +5,8 @@ on: branches: - main tags: - - 'v[0-9]+.[0-9]+.[0-9]+' + - '[0-9]+.[0-9]+.[0-9]+' + - '[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+' pull_request: types: - opened @@ -44,7 +45,7 @@ jobs: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} tags: | type=semver,pattern={{version}} - type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/v') }} + type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') && !contains(github.ref, '-') }} type=sha,prefix=,format=short labels: | summary=StackRox MCP Server diff --git a/README.md b/README.md index 47f9247..591b431 100644 --- a/README.md +++ b/README.md @@ -244,7 +244,7 @@ Docker/Podman will automatically pull the correct image for your platform. | Tag Pattern | Description | Example | |-------------|-------------|---------| | `latest` | Latest release version | `quay.io/stackrox-io/mcp:latest` | -| `v{version}` | Specific release version | `quay.io/stackrox-io/mcp:v1.0.0` | +| `{version}` | Specific release version | `quay.io/stackrox-io/mcp:1.0.0` | | `{commit-sha}` | Specific commit from main branch | `quay.io/stackrox-io/mcp:a1b2c3d` | ### Usage