Files
ci-templates/docs/helm_chart_publish.md
2025-11-11 02:29:49 +03:00

27 lines
965 B
Markdown

# Helm Chart Publishing CI Documentation
## Setup
1. Go to your [profile settings](https://git.romalex.cc/user/settings) (or your organization settings), expand "Actions" tab, go to "Applications" tab. Press "Generate a new token". You need "write:package" and "write:repository" permissions.
2. Return back to "Actions/Secrets" tab, and add a secret named REGISTRY_ACCESS_TOKEN you've created at step 1.
Inside your project, create a file named `.gitea/workflows/build.yaml` with the following content:
```yaml
name: Publish Helm Chart
on:
push:
tags:
- '*'
workflow_dispatch: { }
jobs:
publish:
name: Build and publish Helm chart
uses: public/ci-templates/.gitea/workflows/helm_chart_publish.yaml@v1
secrets:
registry_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
```
There are also inputs that contain default values. You can look them up in [helm_chart_publish.yaml](/.gitea/workflows/helm_chart_publish.yaml) file.