Compare commits
2 Commits
0.14-chart
...
0.16-chart
| Author | SHA1 | Date | |
|---|---|---|---|
| f4c7131cc6 | |||
| 42e1a9b824 |
@@ -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:
|
||||||
@@ -32,13 +32,13 @@ jobs:
|
|||||||
- name: tag release
|
- name: tag release
|
||||||
run: |
|
run: |
|
||||||
export VERSION=$(echo "${{ gitea.ref_name }}" | cut -d '-' -f 1)
|
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'
|
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
|
- 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 /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 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