diff --git a/.gitea/workflows/build_helm_chart_push.yml b/.gitea/workflows/build_helm_chart_push.yml index 6a6440e..43672fb 100644 --- a/.gitea/workflows/build_helm_chart_push.yml +++ b/.gitea/workflows/build_helm_chart_push.yml @@ -15,7 +15,7 @@ env: jobs: - build-and-push-internal: + push-helm-chart: #! see on runner /data/.runner to add label (test => test:docker://debian:bullseye) runs-on: ubuntu-runner container: @@ -32,14 +32,13 @@ jobs: - name: tag release run: | export VERSION=$(echo "${{ gitea.ref_name }}" | cut -d '-' -f 1) - echo $VERSION sed -i "s/^version: .*/version: $VERSION/" /workspace/${{ secrets.GIT_USER_REPO }}/gitea-runner/${{ env.GIT_REPO }}/Chart.yaml - - name: helm package - run: cat /workspace/${{ secrets.GIT_USER_REPO }}/gitea-runner/${{ 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 /workspace/${{ secrets.GIT_USER_REPO }}/gitea-runner/${{ env.GIT_REPO }}-$VERSION.tgz https://${{ vars.REGISTRY_DOCKER }}/api/packages/${{ secrets.GIT_USER_REPO }}/helm/api/charts + run: | + export VERSION=$(echo "${{ gitea.ref_name }}" | cut -d '-' -f 1) + curl --user ${{ secrets.REGISTRY_DOCKER_USER }}:${{ secrets.REGISTRY_DOCKER_PASS }} -X POST --upload-file /workspace/${{ secrets.GIT_USER_REPO }}/gitea-runner/${{ env.GIT_REPO }}-$VERSION.tgz 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}