diff --git a/.github/workflows/helm-release.yml b/.github/workflows/helm-release.yml index dca5b30..096f808 100644 --- a/.github/workflows/helm-release.yml +++ b/.github/workflows/helm-release.yml @@ -5,10 +5,45 @@ on: branches: - main paths: - - "charts/*/Chart.yaml" + - "charts/**" jobs: + semantic-release: + runs-on: ubuntu-latest + steps: + # Checkout repo + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 'lts/*' + - name: Install dependencies + run: npm install + - name: Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: npx semantic-release + + - name: Install yq + run: | + wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O yq &&\ + chmod +x yq + + - name: Get version + id: get_version + run: | + echo "VERSION=$(cat charts/open-webui/Chart.yaml | ./yq -r '.version')" >> $GITHUB_OUTPUT + + - name: Commit Chart.yaml + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: 'chore(release) bump version to ${{ steps.get_version.outputs.VERSION }}' + file_pattern: 'charts/open-webui/Chart.yaml' + release: + needs: semantic-release permissions: contents: write packages: write diff --git a/.releaserc b/.releaserc new file mode 100644 index 0000000..1c75f48 --- /dev/null +++ b/.releaserc @@ -0,0 +1,14 @@ +{ + "name": "helm-charts", + "branches": ["main"], + "plugins": [ + [ + "semantic-release-helm", + { + chartPath: './charts/open-webui', + crPublish: false, + onlyUpdateVersion: true + } + ] + ] +} diff --git a/charts/open-webui/Chart.lock b/charts/open-webui/Chart.lock index 9a53d56..034b5a5 100644 --- a/charts/open-webui/Chart.lock +++ b/charts/open-webui/Chart.lock @@ -9,4 +9,4 @@ dependencies: repository: https://apache.jfrog.io/artifactory/tika version: 2.9.0 digest: sha256:91c12b702598527a8b602af6f229f975abc8bd7cf95c31324bc013bb919ff14e -generated: "2024-11-07T14:14:55.798831-07:00" +generated: "2024-11-07T14:14:55.798831-07:10" diff --git a/charts/open-webui/Chart.yaml b/charts/open-webui/Chart.yaml index ac7a134..752d5cd 100644 --- a/charts/open-webui/Chart.yaml +++ b/charts/open-webui/Chart.yaml @@ -1,42 +1,38 @@ apiVersion: v2 name: open-webui version: 3.6.0 -appVersion: "0.3.35" - +appVersion: 0.3.36 home: https://www.openwebui.com/ -icon: https://raw.githubusercontent.com/open-webui/open-webui/main/static/favicon.png - -description: "Open WebUI: A User-Friendly Web Interface for Chat Interactions 👋" +icon: >- + https://raw.githubusercontent.com/open-webui/open-webui/main/static/favicon.png +description: 'Open WebUI: A User-Friendly Web Interface for Chat Interactions 👋' keywords: - llm - chat - web-ui - sources: - https://github.com/open-webui/helm-charts - https://github.com/open-webui/open-webui/pkgs/container/open-webui - https://github.com/otwld/ollama-helm/ - https://hub.docker.com/r/ollama/ollama - annotations: licenses: MIT - dependencies: - name: ollama repository: https://otwld.github.io/ollama-helm/ - version: ">=0.24.0" + version: '>=0.24.0' import-values: - child: service parent: ollama.service condition: ollama.enabled - name: pipelines repository: https://helm.openwebui.com - version: ">=0.0.1" + version: '>=0.0.1' import-values: - child: service parent: pipelines.service condition: pipelines.enabled - name: tika repository: https://apache.jfrog.io/artifactory/tika - version: ">=2.9.0" + version: '>=2.9.0' condition: tika.enabled diff --git a/package.json b/package.json new file mode 100644 index 0000000..7b21cc3 --- /dev/null +++ b/package.json @@ -0,0 +1,7 @@ +{ + "devDependencies": { + "@semantic-release/github": "^9.0.3", + "semantic-release": "^21.0.5", + "semantic-release-helm": "^2.2.0" + } + }