mirror of
https://github.com/snowykami/neo-blog.git
synced 2025-09-04 08:16:24 +00:00
Merge pull request #3 from redish101/ci/helm-chart
All checks were successful
Push to Helm Chart Repository / build (push) Successful in 17s
All checks were successful
Push to Helm Chart Repository / build (push) Successful in 17s
ci: 自动将helm chart推送至注册表
This commit is contained in:
35
.gitea/workflows/ci.yaml
Normal file
35
.gitea/workflows/ci.yaml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
name: Push to Helm Chart Repository
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
env:
|
||||||
|
USERNAME: ${{ secrets.HELM_REGISTRY_USERNAME }}
|
||||||
|
PASSWORD: ${{ secrets.HELM_REGISTRY_PASSWORD }}
|
||||||
|
REGISTRY: https://git.liteyuki.org/api/packages/kubernetes/helm
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: liteyukios-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: https://git.liteyuki.org/actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install Helm
|
||||||
|
uses: https://git.liteyuki.org/actions/setup-helm@v4
|
||||||
|
|
||||||
|
- name: Set up Helm repository
|
||||||
|
run: |
|
||||||
|
helm repo add --username ${{ env.USERNAME }} --password ${{ env.PASSWORD }} my-repo ${{ env.REGISTRY }}
|
||||||
|
helm repo update
|
||||||
|
helm plugin install https://github.com/chartmuseum/helm-push
|
||||||
|
|
||||||
|
- name: Package Helm chart
|
||||||
|
run: |
|
||||||
|
helm package helm
|
||||||
|
|
||||||
|
- name: Push Helm chart
|
||||||
|
run: |
|
||||||
|
helm cm-push *.tgz my-repo
|
Reference in New Issue
Block a user