All checks were successful
Upload Helm Chart / Explore-Gitea-Actions (push) Successful in 2s
24 lines
771 B
YAML
24 lines
771 B
YAML
name: Upload Helm Chart
|
|
run-name: Uploading helm chart
|
|
on: [push]
|
|
|
|
jobs:
|
|
Explore-Gitea-Actions:
|
|
runs-on: shell
|
|
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 }} > /tmp/gitea-token
|
|
- name: Upload Helm Chart
|
|
run: |
|
|
curl --request POST \
|
|
-H "Authorization: token ${{ secrets.GITEA_TOKEN }}" \
|
|
--form "chart=@wordyne-${HELM_CHART_VERSION}.tgz" \
|
|
https://git.cloudyne.io/api/packages/helm/helm/api/charts |