File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ name: Publish OCI Image
22
33on :
44 workflow_dispatch :
5+ inputs :
6+ version :
7+ description : " OCI version to publish, for example 0.1.1"
8+ required : true
9+ type : string
510 push :
611 tags :
712 - " vector-db-v*"
2025 - name : Checkout repository
2126 uses : actions/checkout@v4
2227
28+ - name : Resolve release version
29+ id : version
30+ shell : bash
31+ run : |
32+ if [[ "${GITHUB_EVENT_NAME}" == "workflow_dispatch" ]]; then
33+ VERSION="${{ inputs.version }}"
34+ else
35+ VERSION="${GITHUB_REF_NAME#vector-db-v}"
36+ fi
37+ echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
38+
2339 - name : Set up QEMU
2440 uses : docker/setup-qemu-action@v3
2541
3955 with :
4056 images : ghcr.io/kroq86/vector-db-mcp
4157 tags : |
42- type=match,pattern=vector-db-v(.*),group=1
58+ type=raw,value=${{ steps.version.outputs.version }}
4359 type=raw,value=latest,enable={{is_default_branch}}
4460
4561 - name : Build and push image
You can’t perform that action at this time.
0 commit comments