Selector.infra/.gitea/workflows/ci.yml

25 lines
679 B
YAML
Raw Normal View History

2024-07-21 11:15:30 +01:00
name: ci
on: [push]
jobs:
publish:
runs-on: ubuntu-latest
name: Publish Charts
2024-07-21 11:16:00 +01:00
if: gitea.event_name == 'push' && (gitea.ref == 'refs/heads/main' || startsWith(gitea.ref, 'refs/tags/'))
2024-07-21 11:15:30 +01:00
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
2024-07-21 11:15:30 +01:00
- name: Push Chart
2024-07-21 11:42:16 +01:00
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