Skip to content

Commit 020eb0c

Browse files
authored
chore(CI): Tweak version handling for upstream releases (#198)
1 parent 61a14d9 commit 020eb0c

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ on:
55
branches:
66
- main
77
tags:
8-
- 'v[0-9]+.[0-9]+.[0-9]+'
8+
- '[0-9]+.[0-9]+.[0-9]+'
9+
- '[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+'
910
pull_request:
1011
types:
1112
- opened
@@ -44,7 +45,7 @@ jobs:
4445
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
4546
tags: |
4647
type=semver,pattern={{version}}
47-
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/v') }}
48+
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') && !contains(github.ref, '-') }}
4849
type=sha,prefix=,format=short
4950
labels: |
5051
summary=StackRox MCP Server

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ Docker/Podman will automatically pull the correct image for your platform.
244244
| Tag Pattern | Description | Example |
245245
|-------------|-------------|---------|
246246
| `latest` | Latest release version | `quay.io/stackrox-io/mcp:latest` |
247-
| `v{version}` | Specific release version | `quay.io/stackrox-io/mcp:v1.0.0` |
247+
| `{version}` | Specific release version | `quay.io/stackrox-io/mcp:1.0.0` |
248248
| `{commit-sha}` | Specific commit from main branch | `quay.io/stackrox-io/mcp:a1b2c3d` |
249249

250250
### Usage

0 commit comments

Comments
 (0)