Compare commits

..

9 Commits

Author SHA1 Message Date
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
63f05ad07b [Lets go again] 2024-11-23 21:28:07 +01:00

View File

@@ -9,6 +9,11 @@ on:
# Be carefull, conflict with package-deb *.*.*, don't use more than on dot *.* (ex: 2.5-runner)
- '*-chart'
env:
CHART_NAME: testchart
jobs:
build-and-push-internal:
#! see on runner /data/.runner to add label (test => test:docker://debian:bullseye)
@@ -20,12 +25,16 @@ 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 }}/${{ vars.DOCKER_IMAGE_NAME }}
helm package ${{ vars.DOCKER_IMAGE_NAME }}
- name: helm create chart
run: helm create ${{ env.CHART_NAME }}
- name: helm package
run: helm package ${{ env.CHART_NAME }}
- name: push repo
run: echo "curl --user ${{ secrets.REGISTRY_DOCKER_USER }}:${{ secrets.REGISTRY_DOCKER_PASS }} -X POST --upload-file ./${{ env.CHART_NAME }}-0.1.0.tgz https://gitea.jingoh.fr/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}
# curl --user {username}:{password} -X POST --upload-file ./{chart_file}.tgz https://gitea.example.com/api/packages/{owner}/helm/api/charts
# - name: Git clone private repository
@@ -49,7 +58,7 @@ jobs:
# with:
# context: .
# push: true
# tags: ${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_NAME }}:latest,${{ vars.REGISTRY_DOCKER }}/${{ vars.DOCKER_IMAGE_NAME }}:${{ gitea.ref_name }}
# tags: ${{ vars.REGISTRY_DOCKER }}/${{ env.CHART_NAME }}:latest,${{ vars.REGISTRY_DOCKER }}/${{ env.CHART_NAME }}:${{ gitea.ref_name }}
# - name: Output
# run: echo "Runner push on ${{ vars.REGISTRY_DOCKER }} image ${{ vars.DOCKER_IMAGE_NAME }} tag ${{ gitea.ref_name }}"
# run: echo "Runner push on ${{ vars.REGISTRY_DOCKER }} image ${{ env.CHART_NAME }} tag ${{ gitea.ref_name }}"