You've already forked ci-templates
generated from public/repo-template
965 B
965 B
Helm Chart Publishing CI Documentation
Setup
- Go to your profile 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.
- 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:
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 file.