Skip to content

Commit 38182bb

Browse files
authored
Fix docker tags (#79)
1 parent 570837c commit 38182bb

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-8
lines changed

.github/workflows/docker.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,18 @@ jobs:
3232
username: ${{ secrets.DOCKERHUB_USERNAME }}
3333
password: ${{ secrets.DOCKERHUB_TOKEN }}
3434

35+
- name: Check if stable release
36+
id: check-stable
37+
run: |
38+
TAG_NAME="${GITHUB_REF#refs/tags/}"
39+
if [[ "$TAG_NAME" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
40+
echo "is_stable=true" >> $GITHUB_OUTPUT
41+
echo "This is a stable release: $TAG_NAME"
42+
else
43+
echo "is_stable=false" >> $GITHUB_OUTPUT
44+
echo "This is a pre-release: $TAG_NAME"
45+
fi
46+
3547
- name: Extract metadata
3648
id: meta
3749
uses: docker/metadata-action@v5
@@ -43,9 +55,9 @@ jobs:
4355
# For tags: extract full version without 'v' prefix (e.g., 0.5.2 or 0.5.2rc3)
4456
type=match,pattern=v(.*),group=1,enable=${{ startsWith(github.ref, 'refs/tags/v') }}
4557
# For stable releases only: extract major.minor (e.g., 0.5 from v0.5.2)
46-
type=match,pattern=v(\d+\.\d+),group=1,enable=${{ startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, 'rc') && !contains(github.ref, 'alpha') && !contains(github.ref, 'beta') }}
47-
# Tag as 'latest' only for non-prerelease version tags
48-
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/v') && !contains(github.ref, 'rc') && !contains(github.ref, 'alpha') && !contains(github.ref, 'beta') }}
58+
type=match,pattern=v(\d+\.\d+),group=1,enable=${{ steps.check-stable.outputs.is_stable == 'true' }}
59+
# Tag as 'latest' only for stable releases
60+
type=raw,value=latest,enable=${{ steps.check-stable.outputs.is_stable == 'true' }}
4961
5062
- name: Set build timestamp
5163
id: 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.2rc4"
3+
version = "0.5.2rc5"
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.2rc4",
9+
"version": "0.5.2rc5",
1010
"packages": [
1111
{
1212
"registryType": "pypi",
1313
"identifier": "couchbase-mcp-server",
14-
"version": "0.5.2rc4",
14+
"version": "0.5.2rc5",
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.2rc4",
175+
"identifier": "docker.io/couchbaseecosystem/mcp-server-couchbase:0.5.2rc5",
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)