Compare commits
9 Commits
0.6-intern
...
0.8-chart
| Author | SHA1 | Date | |
|---|---|---|---|
| 37e069f32d | |||
| 6436e5bb7e | |||
| 5af82cad53 | |||
| 7027cc7b99 | |||
| 42305deba4 | |||
| 6e48d8aacc | |||
| a46dec16e4 | |||
| f32d6ed552 | |||
| 63f05ad07b |
@@ -9,6 +9,11 @@ on:
|
|||||||
# Be carefull, conflict with package-deb *.*.*, don't use more than on dot *.* (ex: 2.5-runner)
|
# Be carefull, conflict with package-deb *.*.*, don't use more than on dot *.* (ex: 2.5-runner)
|
||||||
- '*-chart'
|
- '*-chart'
|
||||||
|
|
||||||
|
|
||||||
|
env:
|
||||||
|
CHART_NAME: testchart
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push-internal:
|
build-and-push-internal:
|
||||||
#! see on runner /data/.runner to add label (test => test:docker://debian:bullseye)
|
#! see on runner /data/.runner to add label (test => test:docker://debian:bullseye)
|
||||||
@@ -20,12 +25,16 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Show Information
|
- name: Show Information
|
||||||
run: echo "Runner ${{ runner.os }} working on repository ${{ gitea.repository }} and on tag ${{ gitea.ref_name }}"
|
run: echo "Runner ${{ runner.os }} working on repository ${{ gitea.repository }} and on tag ${{ gitea.ref_name }}"
|
||||||
- name: clone & package
|
- name: helm create chart
|
||||||
run: |
|
run: helm create ${{ env.CHART_NAME }}
|
||||||
git clone https://${{ secrets.REGISTRY_DOCKER_PASS }}@${{ vars.REGISTRY_DOCKER }}/${{ secrets.REGISTRY_DOCKER_USER }}/${{ vars.DOCKER_IMAGE_NAME }}
|
- name: helm package
|
||||||
helm package ${{ vars.DOCKER_IMAGE_NAME }}
|
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
|
# - name: Git clone private repository
|
||||||
@@ -49,7 +58,7 @@ jobs:
|
|||||||
# with:
|
# with:
|
||||||
# context: .
|
# context: .
|
||||||
# push: true
|
# 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
|
# - 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 }}"
|
||||||
Reference in New Issue
Block a user