Compare commits
7 Commits
0.10-chart
...
0.16-chart
| Author | SHA1 | Date | |
|---|---|---|---|
| f4c7131cc6 | |||
| 42e1a9b824 | |||
| d040748efc | |||
| 74c06b64b9 | |||
| 4a5e991c2e | |||
| d2e101199b | |||
| 6faf71e921 |
@@ -15,7 +15,7 @@ env:
|
|||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push-internal:
|
push-helm-chart:
|
||||||
#! 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)
|
||||||
runs-on: ubuntu-runner
|
runs-on: ubuntu-runner
|
||||||
container:
|
container:
|
||||||
@@ -27,16 +27,18 @@ jobs:
|
|||||||
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: helm create chart
|
# - name: helm create chart
|
||||||
# run: helm create ${{ env.GIT_REPO }}
|
# run: helm create ${{ env.GIT_REPO }}
|
||||||
- name: git clone
|
- name: clone repo helm chart
|
||||||
run: git clone https://${{ secrets.REGISTRY_DOCKER_PASS }}@${{ vars.REGISTRY_DOCKER }}/${{ secrets.REGISTRY_DOCKER_USER }}/${{ env.GIT_REPO }}
|
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: export VERSION=$(echo "${{ gitea.ref_name }}" | cut -d '-' -f 1)
|
run: |
|
||||||
- name: Add release from tag
|
export VERSION=$(echo "${{ gitea.ref_name }}" | cut -d '-' -f 1)
|
||||||
run: 'sed -i "s/^version: .*/version: $VERSION/" /${{ env.GIT_REPO }}/Chart.yaml'
|
sed -i "s/^version: .*/version: $VERSION/" /workspace/${{ secrets.GIT_USER_REPO }}/gitea-runner/${{ env.GIT_REPO }}/Chart.yaml
|
||||||
- name: helm package
|
- name: helm package
|
||||||
run: helm package ${{ env.GIT_REPO }}
|
run: helm package ${{ env.GIT_REPO }}
|
||||||
- name: push 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 repo add --username {username} --password {password} {repo} https://gitea.example.com/api/packages/{owner}/helm
|
||||||
# helm cm-push ./{chart_file}.tgz {repo}
|
# helm cm-push ./{chart_file}.tgz {repo}
|
||||||
|
|||||||
Reference in New Issue
Block a user