Skip to content

Commit ebc2372

Browse files
committed
Merge branch 'helm-publish' of https://github.com/ddelange/docker-registry.helm into patch-3
* 'helm-publish' of https://github.com/ddelange/docker-registry.helm: Publish helm chart as release asset Fix backwards compatibility for k8s 1.24
2 parents 38acafc + a1b77cb commit ebc2372

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: helm-publish
2+
3+
on:
4+
release:
5+
types: [prereleased, released]
6+
7+
env:
8+
HELM_CHARTS_PATH: "."
9+
10+
jobs:
11+
upload-helm-charts:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- uses: azure/setup-helm@v1
18+
19+
- name: Package helm charts
20+
run: helm package .
21+
working-directory: ${{ env.HELM_CHARTS_PATH }}
22+
23+
- name: Rename helm chart archives
24+
run: for filename in *.tgz; do mv "$filename" "helm-chart-$filename"; done
25+
working-directory: ${{ env.HELM_CHARTS_PATH }}
26+
27+
- uses: softprops/action-gh-release@v1
28+
with:
29+
files: ${{ env.HELM_CHARTS_PATH }}/*.tgz

0 commit comments

Comments
 (0)