From 558ae9b5fa9eac2170f272e96cfb117016c8391a Mon Sep 17 00:00:00 2001 From: Strongest Number 9 <16169054+StrongestNumber9@users.noreply.github.com> Date: Wed, 2 Aug 2023 14:40:48 +0300 Subject: [PATCH] Adds helm chart package to github workflow (#93) --- .github/workflows/upload_release.yaml | 8 ++++++-- k8s_01/Chart.yaml | 6 +++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/upload_release.yaml b/.github/workflows/upload_release.yaml index d47cbba..4ec4e75 100644 --- a/.github/workflows/upload_release.yaml +++ b/.github/workflows/upload_release.yaml @@ -53,11 +53,15 @@ jobs: - name: Pack RPM run: cd rpm/ && mvn --batch-mode -Drevision=${{ github.event.release.tag_name }} -Dsha1= -Dchangelist= -f rpm.pom.xml package + - name: Create helm package + run: helm package --version=${{ github.event.release.tag_name }} --app-version=${{ github.event.release.tag_name }} k8s_01/ + - name: Attach rpm to release uses: softprops/action-gh-release@v1 with: - files: rpm/target/rpm/com.teragrep-k8s_01/RPMS/noarch/com.teragrep-k8s_01-*.noarch.rpm - + files: | + rpm/target/rpm/com.teragrep-k8s_01/RPMS/noarch/com.teragrep-k8s_01-*.noarch.rpm + k8s_01-*.tgz - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2.5.0 diff --git a/k8s_01/Chart.yaml b/k8s_01/Chart.yaml index f36ed2d..cdcf890 100644 --- a/k8s_01/Chart.yaml +++ b/k8s_01/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 -name: kubelogreader +name: k8s_01 description: Kubernetes Log Reader type: application -version: 1.0.0 -appVersion: 1.0.0 +version: 0.0.1-SNAPSHOT +appVersion: 0.0.1-SNAPSHOT