Skip to content

Commit

Permalink
Helm chart release
Browse files Browse the repository at this point in the history
  • Loading branch information
maciejmaciejko-gid committed Feb 28, 2024
1 parent 1f415a1 commit 90cc9e0
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/helm-publish.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 90cc9e0

Please sign in to comment.