From 90cc9e03a8a9eacde59001299d0d263c680e579e Mon Sep 17 00:00:00 2001 From: Maciej Maciejko Date: Wed, 28 Feb 2024 14:54:34 +0100 Subject: [PATCH] Helm chart release --- .github/workflows/docker-publish.yml | 16 +++++++++++++- .github/workflows/helm-publish.yml | 31 ++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/helm-publish.yml diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 5d7a73a..0f6bd65 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -21,8 +21,22 @@ env: jobs: - build: + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + - name: Set up Helm + uses: azure/setup-helm@v1 + with: + version: 'v3.7.0' + + - name: Build Helm Chart + run: | + helm lint ./hive-metastore + + build: runs-on: ubuntu-latest permissions: contents: read diff --git a/.github/workflows/helm-publish.yml b/.github/workflows/helm-publish.yml new file mode 100644 index 0000000..f69a9fb --- /dev/null +++ b/.github/workflows/helm-publish.yml @@ -0,0 +1,31 @@ +name: Release Helm Charts + +on: + push: + branches: [ "main" ] + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Helm + uses: azure/setup-helm@v1 + with: + version: 'v3.7.0' + + - name: Package Helm Charts + run: | + mkdir -p charts + helm package -d gh-charts hive-metastore + + - name: Publish Helm Charts + run: | + git stash + git checkout bh-pages + git stash pop + git add -A + git commit -m "Helm chart release" + git push