Skip to content

Commit 72b079a

Browse files
committed
switch to single release file
1 parent 50699a8 commit 72b079a

File tree

2 files changed

+10
-44
lines changed

2 files changed

+10
-44
lines changed

.github/workflows/helm-release-voyager.yaml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/helm-release-lemmy.yaml renamed to .github/workflows/helm-release.yaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: Release Lemmy
1+
name: Release Helm
22

33
on:
44
push:
55
tags:
6-
- lemmy-v*
6+
- '*/v*'
77

88
jobs:
99
release:
@@ -24,14 +24,17 @@ jobs:
2424
echo '${{ secrets.MRMHUB_PASSWORD }}' | helm registry login mrmhub.io --username '${{ secrets.MRMHUB_USERNAME }}' --password-stdin
2525
2626
- name: Configure chart version
27-
id: chart_version
27+
id: chart_meta
2828
run: |
29-
echo "chart_version=$(cut -d - -f 2- <<<"${{ github.ref }}")" >> "$GITHUB_OUTPUT"
30-
29+
cat >> "$GITHUB_OUTPUT" <<EOF
30+
chart_name=$(cut -d / -f 3 <<<"${{ github.ref }}")
31+
chart_version=$(cut -d / -f 4- <<<"${{ github.ref }}")
32+
EOF
33+
3134
- name: Package chart
3235
run: |
33-
helm package lemmy --version "${{ steps.chart_version.outputs.chart_version }}"
36+
helm package "${{ steps.chart_meta.outputs.chart_name }}" --version "${{ steps.chart_meta.outputs.chart_version }}"
3437
3538
- name: Upload chart
3639
run: |
37-
helm push "lemmy-${{ steps.chart_version.outputs.chart_version }}.tgz" oci://mrmhub.io/mikemrm
40+
helm push "${{ steps.chart_meta.outputs.chart_name }}-${{ steps.chart_meta.outputs.chart_version }}.tgz" oci://mrmhub.io/mikemrm

0 commit comments

Comments
 (0)