Compare commits

...

6 Commits

Author SHA1 Message Date
f4c7131cc6 [puta ca va marcher] 2024-11-23 22:47:20 +01:00
42e1a9b824 [hola] 2024-11-23 22:45:50 +01:00
d040748efc [hola] 2024-11-23 22:43:50 +01:00
74c06b64b9 [...] 2024-11-23 22:42:48 +01:00
4a5e991c2e [...] 2024-11-23 22:41:46 +01:00
d2e101199b [fck] 2024-11-23 22:41:30 +01:00

View File

@@ -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:
@@ -29,19 +29,16 @@ jobs:
# 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
- name: tag release
run: |
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'
export VERSION=$(echo "${{ gitea.ref_name }}" | cut -d '-' -f 1)
sed -i "s/^version: .*/version: $VERSION/" /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 ./${{ env.GIT_REPO }}-$VERSIONtgz 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}