File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change 12
12
runs-on : ubuntu-latest
13
13
permissions :
14
14
contents : write
15
+ packages : write
15
16
steps :
16
17
- name : Checkout
17
18
uses : actions/checkout@v4
@@ -26,11 +27,31 @@ jobs:
26
27
- name : Install Helm
27
28
uses : azure/setup-helm@v4
28
29
with :
29
- version : v3.10.0
30
+ version : v3.18.2
30
31
31
32
- name : Run chart-releaser
32
33
34
+ id : cr
33
35
with :
34
36
charts_dir : charts
35
37
env :
36
38
CR_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
39
+ CR_SKIP_EXISTING : " true"
40
+
41
+ - if : ${{ steps.cr.outputs.changed_charts }}
42
+ name : Login to GitHub Container Registry
43
+ uses : docker/login-action@v3
44
+ with :
45
+ registry : ghcr.io
46
+ username : ${{ github.actor }}
47
+ password : ${{ secrets.GITHUB_TOKEN }}
48
+
49
+ - if : ${{ steps.cr.outputs.changed_charts }}
50
+ name : Push Charts to GHCR
51
+ run : |
52
+ for pkg in .cr-release-packages/*; do
53
+ if [ -z "${pkg:-}" ]; then
54
+ break
55
+ fi
56
+ helm push "${pkg}" oci://ghcr.io/${{ github.repository }}/charts
57
+ done
You can’t perform that action at this time.
0 commit comments