Skip to content

Commit 570837c

Browse files
authored
Enhance Docker workflow for version tagging in GitHub Actions. (#78)
1 parent 2769344 commit 570837c

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

.github/workflows/docker.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,14 @@ jobs:
3838
with:
3939
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
4040
tags: |
41+
# For PRs: tag as pr-<number>
4142
type=ref,event=pr
42-
type=semver,pattern={{version}}
43-
type=semver,pattern={{major}}.{{minor}}
44-
type=raw,value=latest
43+
# For tags: extract full version without 'v' prefix (e.g., 0.5.2 or 0.5.2rc3)
44+
type=match,pattern=v(.*),group=1,enable=${{ startsWith(github.ref, 'refs/tags/v') }}
45+
# 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') }}
4549
4650
- name: Set build timestamp
4751
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.2rc3"
3+
version = "0.5.2rc4"
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.2rc3",
9+
"version": "0.5.2rc4",
1010
"packages": [
1111
{
1212
"registryType": "pypi",
1313
"identifier": "couchbase-mcp-server",
14-
"version": "0.5.2rc3",
14+
"version": "0.5.2rc4",
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.2rc3",
175+
"identifier": "docker.io/couchbaseecosystem/mcp-server-couchbase:0.5.2rc4",
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)