Skip to content

Commit dd9ebc1

Browse files
committed
ci: push chart to OCI
Signed-off-by: Rory Z <[email protected]>
1 parent fcda926 commit dd9ebc1

File tree

3 files changed

+18
-16
lines changed

3 files changed

+18
-16
lines changed

.github/workflows/chart.yaml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@ name: Release Charts
22

33
on:
44
push:
5+
branches:
6+
- ci/*
57
tags:
68
- "v*.*.*"
9+
workflow_dispatch:
710

811
permissions: write-all
912

@@ -12,19 +15,19 @@ jobs:
1215
runs-on: ubuntu-latest
1316
steps:
1417
- name: Checkout
15-
uses: actions/checkout@v3
16-
with:
17-
fetch-depth: 0
18+
uses: actions/checkout@v4
1819

19-
- name: Configure Git
20-
run: |
21-
git config user.name "$GITHUB_ACTOR"
22-
git config user.email "[email protected]"
20+
- name: Set up Helm
21+
uses: azure/setup-helm@v3
2322

24-
- name: Run chart-releaser
25-
id: cr
26-
uses: helm/[email protected]
27-
env:
28-
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
23+
- name: Log in to GitHub Container Registry
24+
uses: docker/login-action@v2
2925
with:
30-
charts_dir: ./deploy/chart
26+
registry: ghcr.io
27+
username: ${{ github.actor }}
28+
password: ${{ secrets.GITHUB_TOKEN }}
29+
30+
- name: Package Helm Charts
31+
run: |
32+
helm package deploy/chart/ekuiper --destination ./packages
33+
helm push ./packages/*.tgz oci://ghcr.io/${{ github.repository_owner }}/ekuiper-charts/ekuiper

deploy/chart/ekuiper/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ version: 1.4.0
1818

1919
# This is the version number of the application being deployed. This version number should be
2020
# incremented each time you make changes to the application.
21-
appVersion: 2.3
21+
appVersion: 2.3.0-beta.5

deploy/chart/ekuiper/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ helm install my-ekuiper .
1414

1515
- From Helm repo
1616
```
17-
helm repo add emqx https://repos.emqx.io/charts
18-
helm install my-ekuiper emqx/ekuiper
17+
helm install my-ekuiper oci://ghcr.io/lf-edge/ekuiper-charts/ekuiper/ekuiper
1918
```
2019

2120

0 commit comments

Comments
 (0)