Compare commits

...

11 Commits

Author SHA1 Message Date
6faf71e921 [fo ahead] 2024-11-23 22:39:36 +01:00
a02e13bd10 [last one motherfucker] 2024-11-23 22:37:56 +01:00
667102a66f [debilos * 2] 2024-11-23 22:28:16 +01:00
37e069f32d [debilos] 2024-11-23 22:27:25 +01:00
6436e5bb7e [debilos] 2024-11-23 22:25:12 +01:00
5af82cad53 [test helm] 2024-11-23 22:22:55 +01:00
7027cc7b99 [test helm] 2024-11-23 22:20:54 +01:00
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

@@ -11,7 +11,7 @@ on:
env:
CHART_NAME: testchart
GIT_REPO: testchart
jobs:
@@ -25,12 +25,23 @@ jobs:
steps:
- name: Show Information
run: echo "Runner ${{ runner.os }} working on repository ${{ gitea.repository }} and on tag ${{ gitea.ref_name }}"
- name: clone & package
# - name: helm create chart
# run: helm create ${{ env.GIT_REPO }}
- name: clone repo helm chart
run: git clone https://${{ secrets.REGISTRY_DOCKER_PASS }}@${{ vars.REGISTRY_DOCKER }}/${{ secrets.REGISTRY_DOCKER_USER }}/${{ env.GIT_REPO }}
- name: export version
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
ls
pwd
sleep 300
- name: export version
run: export VERSION=$(echo "${{ gitea.ref_name }}" | cut -d '-' -f 1)
- name: Add release from tag
run: 'sed -i "s/^version: .*/version: $VERSION/" /${{ env.GIT_REPO }}/Chart.yaml'
- name: helm package
run: helm package ${{ env.GIT_REPO }}
- name: push repo
run: curl --user ${{ secrets.REGISTRY_DOCKER_USER }}:${{ secrets.REGISTRY_DOCKER_PASS }} -X POST --upload-file ./${{ env.GIT_REPO }}-$VERSIONtgz https://${{ vars.REGISTRY_DOCKER }}/api/packages/${{ secrets.GIT_USER_REPO }}/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}