vikunja-helm/.gitea/workflows/chart.yaml
Ash Leece 584a03c3db
All checks were successful
Helm Chart Build and Publish / build-and-publish (push) Successful in 16s
Update workflow to trigger on 'main' branch instead of 'master'
2024-12-20 11:13:53 +00:00

28 lines
812 B
YAML

name: Helm Chart Build and Publish
on:
push:
branches:
- main
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Helm
run: |
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
- name: Build Helm Chart
run: |
helm package . --destination ./charts
- name: Publish Helm Chart to registry
env:
HELM_REGISTRY: "https://git.leece.im/api/packages/${{ secrets.REGISTRY_USERNAME }}/helm/api/charts"
USERNAME: ${{ secrets.REGISTRY_USERNAME }}
PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
run: |
curl --user $USERNAME:$PASSWORD -X POST --upload-file ./charts/*.tgz $HELM_REGISTRY