Add Helm chart and Kubernetes deployment configuration for Redmine MCP

This commit is contained in:
sha
2026-03-20 16:40:23 +02:00
parent 315992c37a
commit 2ad020761e
8 changed files with 254 additions and 4 deletions
+30 -2
View File
@@ -9,12 +9,18 @@ jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
contents: write
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set image tag
id: tag
run: echo "value=sha-$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
@@ -36,6 +42,28 @@ jobs:
file: container/Containerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/${{ github.repository }}:latest
tags: ghcr.io/${{ github.repository }}:${{ steps.tag.outputs.value }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Bump chart version and set appVersion
id: chart
run: |
CURRENT=$(grep '^version:' helm/Chart.yaml | awk '{print $2}')
MAJOR=$(echo $CURRENT | cut -d. -f1)
MINOR=$(echo $CURRENT | cut -d. -f2)
PATCH=$(echo $CURRENT | cut -d. -f3)
NEW_VERSION="$MAJOR.$MINOR.$((PATCH + 1))"
sed -i "s/^version: .*/version: $NEW_VERSION/" helm/Chart.yaml
sed -i "s/^appVersion: .*/appVersion: \"${{ steps.tag.outputs.value }}\"/" helm/Chart.yaml
echo "version=$NEW_VERSION" >> $GITHUB_OUTPUT
- name: Commit and push chart update
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add helm/Chart.yaml
git commit -m "chore: chart ${{ steps.chart.outputs.version }}, appVersion ${{ steps.tag.outputs.value }} [skip ci]"
git push