From ae6706da255b08415a8e76d606dddd2d47d1a3bb Mon Sep 17 00:00:00 2001 From: Mike Mason Date: Sat, 7 Dec 2024 17:44:19 -0600 Subject: [PATCH] switch to single release file --- .github/workflows/helm-release-voyager.yaml | 37 ------------------- ...m-release-lemmy.yaml => helm-release.yaml} | 17 +++++---- 2 files changed, 10 insertions(+), 44 deletions(-) delete mode 100644 .github/workflows/helm-release-voyager.yaml rename .github/workflows/{helm-release-lemmy.yaml => helm-release.yaml} (54%) diff --git a/.github/workflows/helm-release-voyager.yaml b/.github/workflows/helm-release-voyager.yaml deleted file mode 100644 index 2849415..0000000 --- a/.github/workflows/helm-release-voyager.yaml +++ /dev/null @@ -1,37 +0,0 @@ -name: Release Voyager - -on: - push: - tags: - - voyager-v* - -jobs: - release: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Install Helm - uses: azure/setup-helm@v4 - 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 diff --git a/.github/workflows/helm-release-lemmy.yaml b/.github/workflows/helm-release.yaml similarity index 54% rename from .github/workflows/helm-release-lemmy.yaml rename to .github/workflows/helm-release.yaml index 70f6446..fdab786 100644 --- a/.github/workflows/helm-release-lemmy.yaml +++ b/.github/workflows/helm-release.yaml @@ -1,9 +1,9 @@ -name: Release Lemmy +name: Release Helm on: push: tags: - - lemmy-v* + - '*/v*' jobs: release: @@ -24,14 +24,17 @@ jobs: echo '${{ secrets.MRMHUB_PASSWORD }}' | helm registry login mrmhub.io --username '${{ secrets.MRMHUB_USERNAME }}' --password-stdin - name: Configure chart version - id: chart_version + id: chart_meta run: | - echo "chart_version=$(cut -d - -f 2- <<<"${{ github.ref }}")" >> "$GITHUB_OUTPUT" - + cat >> "$GITHUB_OUTPUT" <