Selector.infra/.gitea/workflows/ci.yml
Andy Pack f732686845
All checks were successful
ci / Publish Charts (push) Successful in 18s
using http helm repo
2024-07-21 11:42:16 +01:00

25 lines
679 B
YAML

name: ci
on: [push]
jobs:
publish:
runs-on: ubuntu-latest
name: Publish Charts
if: gitea.event_name == 'push' && (gitea.ref == 'refs/heads/main' || startsWith(gitea.ref, 'refs/tags/'))
steps:
- uses: actions/checkout@v4
with:
github-server-url: https://gitea.sheep-ghoul.ts.net
- uses: azure/setup-helm@v4.2.0
- name: Package Chart
run: helm package -u charts/selector
- name: Push Chart
run: curl --user ${{ secrets.REPO_USERNAME }}:${{ secrets.REPO_TOKEN }} -X POST --upload-file ./selector-0.0.1.tgz https://gitea.sheep-ghoul.ts.net/api/packages/${{ secrets.REPO_USERNAME }}/helm/api/charts