Updated
This commit is contained in:
24
.gitea/workflows/upload-helm.yml
Normal file
24
.gitea/workflows/upload-helm.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
name: Upload Helm Chart
|
||||
run-name: Uploading helm chart
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
Explore-Gitea-Actions:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
HELM_CHART_VERSION: "1.0.24"
|
||||
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
|
||||
- run: echo ${{ secrets.GITEA_TOKEN }}
|
||||
- name: Upload Helm Chart
|
||||
run: |
|
||||
curl --request POST \
|
||||
-H "Authorization: Bearer ${{ secrets.GITEA_TOKEN }}" \
|
||||
--form "chart=@wordyne-${HELM_CHART_VERSION}.tgz" \
|
||||
https://git.cloudyne.io/api/packages/helm/helm/charts
|
||||
Reference in New Issue
Block a user