Skip to content

Commit 3a49d87

Browse files
committed
ci: release Container image on tag
1 parent 2a11784 commit 3a49d87

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: .github/workflows/release-image.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@ name: Release as container image
22

33
on:
44
push:
5-
# TODO publish on tag
65
branches:
76
- main
7+
tags:
8+
- '*'
89

910
env:
1011
IMAGE_NAME: quay.io/manusa/kubernetes_mcp_server
11-
TAG: latest
12+
TAG: ${{ github.ref_name == 'main' && 'latest' || github.ref_type == 'tag' && github.ref_name && startsWith(github.ref_name, 'v') && github.ref_name || 'unknown' }}
1213

1314
jobs:
1415
publish-platform-images:

0 commit comments

Comments
 (0)