File tree 4 files changed +12
-13
lines changed
4 files changed +12
-13
lines changed Original file line number Diff line number Diff line change 49
49
key : ${{ runner.os }}-goreleaser-${{ hashFiles('**/go.sum') }}
50
50
restore-keys : |
51
51
${{ runner.os }}-goreleaser-
52
- - name : Generate release artifacts
53
- if : startsWith(github.ref, 'refs/tags/v')
52
+ - name : Generate helm package
54
53
run : |
55
- mkdir -p config/release
56
- kustomize build ./config/crd > ./config/release/${{ env.CONTROLLER }}.crds.yaml
57
- kustomize build ./config/manager > ./config/release/${{ env.CONTROLLER }}.deployment.yaml
58
- echo '[CHANGELOG](https://github.com/kluctl/${{ env.CONTROLLER }}/blob/main/CHANGELOG.md)' > ./config/release/notes.md
54
+ make helm-package
59
55
- name : Run GoReleaser
60
56
if : startsWith(github.ref, 'refs/tags/v')
61
57
uses : goreleaser/goreleaser-action@v6
65
61
args : release --release-notes=config/release/notes.md --rm-dist --skip-validate
66
62
env :
67
63
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
64
+ - name : Push chart to GHCR
65
+ if : startsWith(github.ref, 'refs/tags/v')
66
+ run : |
67
+ helm push ./bin/chart/template-controller-*.tgz "oci://ghcr.io/${GITHUB_REPOSITORY_OWNER}/charts"
Original file line number Diff line number Diff line change @@ -59,11 +59,11 @@ release:
59
59
draft : true
60
60
prerelease : " true"
61
61
extra_files :
62
- - glob : config/release/*.yaml
62
+ - glob : bin/chart/template-controller-*.tgz
63
63
64
64
checksum :
65
65
extra_files :
66
- - glob : config/release/*.yaml
66
+ - glob : bin/chart/template-controller-*.tgz
67
67
name_template : ' {{ .ProjectName }}_v{{ .Version }}_checksums.txt'
68
68
69
69
source :
Original file line number Diff line number Diff line change @@ -88,12 +88,9 @@ helm-docs:
88
88
cd $(HELM_DIR ) ; \
89
89
docker run --rm -v $(shell pwd) /$(HELM_DIR ) :/helm-docs -u $(shell id -u) jnorwood/helm-docs:v1.14.2
90
90
91
- HELM_VERSION ?= $(shell helm show chart $(HELM_DIR ) | grep 'version:' | sed 's/version: //g')
92
-
93
91
.PHONE : helm-package
94
92
helm-package :
95
93
helm package $(HELM_DIR ) --destination $(OUTPUT_DIR ) /chart
96
- mv $(OUTPUT_DIR ) /chart/template-controller-$(HELM_VERSION ) .tgz $(OUTPUT_DIR ) /chart/template-controller.tgz
97
94
98
95
# #@ Build
99
96
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ kubectl apply -f "https://raw.githubusercontent.com/kluctl/template-controller/v
20
20
A Helm Chart for the controller is available as well.
21
21
To install the controller via Helm, run:
22
22
``` shell
23
- $ helm repo add kluctl https://kluctl.github.io/charts
24
- $ helm install template-controller -n template-controller --create-namespace kluctl/template-controller
23
+ $ helm install template-controller -n template-controller --create-namespace oci://ghcr.io/kluctl/template-controller
25
24
```
25
+
26
+ The Helm Chart is only distributed as an OCI package. The old Helm Repository found at https://github.com/kluctl/charts
27
+ is not maintained anymore.
You can’t perform that action at this time.
0 commit comments