Skip to content

Commit 5b7dad5

Browse files
committed
fix(deployment): Fix naming and some conditions
1 parent 22e57ce commit 5b7dad5

File tree

17 files changed

+21
-1415
lines changed

17 files changed

+21
-1415
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,6 @@ jobs:
8181
helm template mcp-server ./helm/mcp-server \
8282
--values ./helm/mcp-server/examples/values-production.yaml
8383
84-
- name: Validate secops values
85-
run: |
86-
echo "Validating helm/mcp-server/examples/values-secops.yaml..."
87-
helm template mcp-server ./helm/mcp-server \
88-
--values ./helm/mcp-server/examples/values-secops.yaml
89-
9084
- name: Lint Helm Chart
9185
run: |
9286
echo "Linting Helm chart..."
@@ -104,11 +98,12 @@ jobs:
10498
- name: Set up Helm
10599
uses: azure/setup-helm@v4
106100
with:
107-
version: latest
101+
# the latest version break on helm plugin install https://github.com/helm-unittest/helm-unittest.git
102+
version: 3.19.0
108103

109104
- name: Install Helm Unittest Plugin
110105
run: |
111-
helm plugin install https://github.com/helm-unittest/helm-unittest.git --verify=false
106+
helm plugin install https://github.com/helm-unittest/helm-unittest.git
112107
113108
- name: Run Helm unit tests
114109
run: |

.github/workflows/release.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,25 +109,27 @@ jobs:
109109
-p ${{ secrets.GITHUB_TOKEN }}
110110
111111
CHART_VERSION=$(grep "^version:" ./helm/mcp-server/Chart.yaml | cut -d' ' -f2 | tr -d '"')
112+
REPO_OWNER=$(echo '${{ github.repository_owner }}' | tr '[:upper:]' '[:lower:]')
112113
113114
helm push "${{ steps.package.outputs.chart-path }}" \
114-
oci://${{ env.REGISTRY }}/${{ github.repository_owner }}/helm-charts
115+
oci://${{ env.REGISTRY }}/${REPO_OWNER}/helm-charts
115116
116-
echo "✅ Chart published to: ${{ env.REGISTRY }}/${{ github.repository_owner }}/helm-charts:${CHART_VERSION}"
117+
echo "✅ Chart published to: ${{ env.REGISTRY }}/${REPO_OWNER}/helm-charts:${CHART_VERSION}"
117118
118119
- name: Create summary
119120
run: |
120121
CHART_VERSION=$(grep "^version:" ./helm/mcp-server/Chart.yaml | cut -d' ' -f2 | tr -d '"')
122+
REPO_OWNER=$(echo '${{ github.repository_owner }}' | tr '[:upper:]' '[:lower:]')
121123
echo "## ✅ Helm Chart Released" >> $GITHUB_STEP_SUMMARY
122124
echo "" >> $GITHUB_STEP_SUMMARY
123125
echo "Chart: mcp-server" >> $GITHUB_STEP_SUMMARY
124126
echo "Version: ${CHART_VERSION}" >> $GITHUB_STEP_SUMMARY
125127
echo "" >> $GITHUB_STEP_SUMMARY
126-
echo "Published to: \`oci://${{ env.REGISTRY }}/${{ github.repository_owner }}/helm-charts\`" >> $GITHUB_STEP_SUMMARY
128+
echo "Published to: \`oci://${{ env.REGISTRY }}/${REPO_OWNER}/helm-charts\`" >> $GITHUB_STEP_SUMMARY
127129
echo "" >> $GITHUB_STEP_SUMMARY
128130
echo "Install with:" >> $GITHUB_STEP_SUMMARY
129131
echo '```bash' >> $GITHUB_STEP_SUMMARY
130-
echo "helm pull oci://${{ env.REGISTRY }}/${{ github.repository_owner }}/helm-charts/mcp-server --version ${CHART_VERSION}" >> $GITHUB_STEP_SUMMARY
132+
echo "helm pull oci://${{ env.REGISTRY }}/${REPO_OWNER}/helm-charts/mcp-server --version ${CHART_VERSION}" >> $GITHUB_STEP_SUMMARY
131133
echo '```' >> $GITHUB_STEP_SUMMARY
132134
133135
publish-to-pypi:

0 commit comments

Comments
 (0)