Skip to content

Commit

Permalink
add releases
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemrm committed Oct 19, 2024
1 parent 33ecc51 commit c746685
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/helm-release-lemmy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release Lemmy

on:
push:
tags:
- lemmy-v*

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install Helm
uses: azure/setup-helm@v3
with:
version: v3.10.0

- name: Login to mrmhub
run: |
echo '${{ secrets.MRMHUB_PASSWORD }}' | helm registry login mrmhub.io --username '${{ secrets.MRMHUB_USERNAME }}' --password-stdin
- name: Configure chart version
id: chart_version
run: |
echo "chart_version=$(cut -d - -f 2- <<<"${{ github.ref }}")" >> "$GITHUB_OUTPUT"
- name: Package chart
run: |
helm package lemmy --version "${{ steps.chart_version.outputs.chart_version }}"
- name: Upload chart
run: |
helm push "lemmy-${{ steps.chart_version.outputs.chart_version }}.tgz" oci://mrmhub.io/mikemrm
37 changes: 37 additions & 0 deletions .github/workflows/helm-release-voyager.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release Voyager

on:
push:
tags:
- voyager-v*

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install Helm
uses: azure/setup-helm@v3
with:
version: v3.10.0

- name: Login to mrmhub
run: |
echo '${{ secrets.MRMHUB_PASSWORD }}' | helm registry login mrmhub.io --username '${{ secrets.MRMHUB_USERNAME }}' --password-stdin
- name: Configure chart version
id: chart_version
run: |
echo "chart_version=$(cut -d - -f 2- <<<"${{ github.ref }}")" >> "$GITHUB_OUTPUT"
- name: Package chart
run: |
helm package voyager --version "${{ steps.chart_version.outputs.chart_version }}"
- name: Upload chart
run: |
helm push "voyager-${{ steps.chart_version.outputs.chart_version }}.tgz" oci://mrmhub.io/mikemrm

0 comments on commit c746685

Please sign in to comment.