Skip to content

Commit 8e3a7b9

Browse files
authored
Fix docker latest tagging (#80)
1 parent 38182bb commit 8e3a7b9

File tree

4 files changed

+17
-10
lines changed

4 files changed

+17
-10
lines changed

.github/workflows/docker.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,29 +34,36 @@ jobs:
3434

3535
- name: Check if stable release
3636
id: check-stable
37+
if: startsWith(github.ref, 'refs/tags/')
3738
run: |
3839
TAG_NAME="${GITHUB_REF#refs/tags/}"
40+
echo "Checking tag: $TAG_NAME"
41+
42+
# Only match vX.Y.Z format (no suffixes like rc, alpha, beta)
3943
if [[ "$TAG_NAME" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
4044
echo "is_stable=true" >> $GITHUB_OUTPUT
41-
echo "This is a stable release: $TAG_NAME"
45+
echo "This is a STABLE release: $TAG_NAME"
4246
else
4347
echo "is_stable=false" >> $GITHUB_OUTPUT
44-
echo "This is a pre-release: $TAG_NAME"
48+
echo "This is a PRE-RELEASE: $TAG_NAME (will not update 'latest' or major.minor tags)"
4549
fi
4650
4751
- name: Extract metadata
4852
id: meta
4953
uses: docker/metadata-action@v5
5054
with:
5155
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
56+
flavor: |
57+
# Disable automatic 'latest' tag to have explicit control
58+
latest=false
5259
tags: |
5360
# For PRs: tag as pr-<number>
5461
type=ref,event=pr
55-
# For tags: extract full version without 'v' prefix (e.g., 0.5.2 or 0.5.2rc3)
56-
type=match,pattern=v(.*),group=1,enable=${{ startsWith(github.ref, 'refs/tags/v') }}
62+
# For all tags: extract full version without 'v' prefix (e.g., 0.5.2 or 0.5.2rc3)
63+
type=match,pattern=v(.*),group=1
5764
# For stable releases only: extract major.minor (e.g., 0.5 from v0.5.2)
5865
type=match,pattern=v(\d+\.\d+),group=1,enable=${{ steps.check-stable.outputs.is_stable == 'true' }}
59-
# Tag as 'latest' only for stable releases
66+
# For stable releases only: tag as 'latest'
6067
type=raw,value=latest,enable=${{ steps.check-stable.outputs.is_stable == 'true' }}
6168
6269
- name: Set build timestamp

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "couchbase-mcp-server"
3-
version = "0.5.2rc5"
3+
version = "0.5.2rc6"
44
description = "Couchbase MCP Server - The Developer Data Platform for Critical Applications in Our AI World"
55
readme = "README.md"
66
requires-python = ">=3.10,<3.14"

server.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
"url": "https://github.com/Couchbase-Ecosystem/mcp-server-couchbase",
77
"source": "github"
88
},
9-
"version": "0.5.2rc5",
9+
"version": "0.5.2rc6",
1010
"packages": [
1111
{
1212
"registryType": "pypi",
1313
"identifier": "couchbase-mcp-server",
14-
"version": "0.5.2rc5",
14+
"version": "0.5.2rc6",
1515
"transport": {
1616
"type": "stdio"
1717
},
@@ -172,7 +172,7 @@
172172
},
173173
{
174174
"registryType": "oci",
175-
"identifier": "docker.io/couchbaseecosystem/mcp-server-couchbase:0.5.2rc5",
175+
"identifier": "docker.io/couchbaseecosystem/mcp-server-couchbase:0.5.2rc6",
176176
"transport": {
177177
"type": "stdio"
178178
},

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)