This commit is contained in:
24
.gitea/workflows/build-helm-release.yaml
Normal file
24
.gitea/workflows/build-helm-release.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
name: Build and Push Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install cm-push
|
||||
run: helm plugin install https://github.com/chartmuseum/helm-push
|
||||
|
||||
- name: Setup helm Repo
|
||||
run: helm repo add --username ${{ secrets.REGISTRY_USER }} --password ${{ secrets.REGISTRY_PASSWORD }} gitea https://git.kocoder.xyz/api/packages/kocoded/helm
|
||||
|
||||
- name: Build helm chart
|
||||
run: helm package ./helm/chart/vt
|
||||
|
||||
- name: Build and Push
|
||||
run: helm cm-push ./vt-*.tgz gitea
|
||||
Reference in New Issue
Block a user