This commit is contained in:
25
.gitea/workflows/upload-helm.yml
Normal file
25
.gitea/workflows/upload-helm.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
name: Upload Helm Chart
|
||||
run-name: Uploading helm chart
|
||||
on:
|
||||
push:
|
||||
tags: ['*']
|
||||
|
||||
jobs:
|
||||
Explore-Gitea-Actions:
|
||||
runs-on: shell
|
||||
env:
|
||||
HELM_CHART_VERSION: "${{ github.ref_name }}"
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Helm
|
||||
uses: azure/setup-helm@v1
|
||||
with:
|
||||
version: 'v3.0.0'
|
||||
- run: 'sed -i "s/version:.*/version: \"${HELM_CHART_VERSION}\"/" ./Chart/Chart.yaml'
|
||||
- run: helm package ./Chart
|
||||
- name: Upload Helm Chart
|
||||
run: |
|
||||
curl --request POST \
|
||||
--user ${{ secrets.HELM_PKG_UPLOAD_USER }}:${{ secrets.HELM_PKG_UPLOAD_PASS }} \
|
||||
--form "chart=@wordyne-${HELM_CHART_VERSION}.tgz" \
|
||||
https://git.cloudyne.io/api/packages/helm/helm/api/charts
|
||||
Reference in New Issue
Block a user