Compare commits

...

4 Commits

Author SHA1 Message Date
42305deba4 [test helm] 2024-11-23 22:20:12 +01:00
6e48d8aacc [test helm] 2024-11-23 22:18:12 +01:00
a46dec16e4 [test helm] 2024-11-23 22:15:55 +01:00
f32d6ed552 [test helm] 2024-11-23 21:34:31 +01:00

View File

@@ -25,12 +25,12 @@ jobs:
steps:
- name: Show Information
run: echo "Runner ${{ runner.os }} working on repository ${{ gitea.repository }} and on tag ${{ gitea.ref_name }}"
- name: clone & package
run: |
git clone https://${{ secrets.REGISTRY_DOCKER_PASS }}@${{ vars.REGISTRY_DOCKER }}/${{ secrets.REGISTRY_DOCKER_USER }}/${{ env.CHART_NAME }}
helm package ${{ env.CHART_NAME }}
curl --user ${{ REGISTRY_DOCKER_USER }}:${{ REGISTRY_DOCKER_PASS }} -X POST --upload-file ./${{ env.CHART_NAME }}.tgz https://gitea.example.com/api/packages/${{ REGISTRY_DOCKER_USER }}/helm/api/charts
- name: helm create chart
run: helm create ${{ env.CHART_NAME }}
- name: helm package
run: helm package ${{ env.CHART_NAME }}
- name: push repo
run: curl --user ${{ REGISTRY_DOCKER_USER }}:${{ REGISTRY_DOCKER_PASS }} -X POST --upload-file ./${{ env.CHART_NAME }}-0.1.0.tgz https://gitea.jingoh.fr/api/packages/${{ REGISTRY_DOCKER_USER }}/helm/api/charts
# helm repo add --username {username} --password {password} {repo} https://gitea.example.com/api/packages/{owner}/helm
# helm cm-push ./{chart_file}.tgz {repo}