Skip to content

Commit 1c1f4a0

Browse files
mayastor-borstiagolobocastro
andcommitted
chore(bors): merge pull request #788
788: ci: publish mayastor helm chart as oci (backport #787) r=tiagolobocastro a=mergify[bot] Publish mayastor helm chart as OCI<hr>This is an automatic backport of pull request #787 done by [Mergify](https://mergify.com). Co-authored-by: Tiago Castro <tiagolobocastro@gmail.com>
2 parents a997255 + 3d36bfd commit 1c1f4a0

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/release-chart.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,25 @@ jobs:
3131
nix-shell --pure --run "./scripts/helm/publish-chart-yaml.sh --check-chart "$branch"" ./scripts/helm/shell.nix
3232
fi
3333
nix-shell --pure --run "SKIP_GIT=1 ./scripts/helm/generate-readme.sh" ./scripts/helm/shell.nix
34+
echo "CHART_VERSION=$(awk -F': ' '/^version:/ {print $2}' ./chart/Chart.yaml)" >> $GITHUB_ENV
3435
- name: Publish Mayastor Helm chart
3536
uses: stefanprodan/helm-gh-pages@v1.7.0
3637
if: ${{ github.ref_type == 'tag' }}
3738
with:
3839
token: ${{ secrets.GITHUB_TOKEN }}
3940
charts_dir: .
41+
- name: Publish chart via OCI
42+
uses: appany/helm-oci-chart-releaser@v0.4.2
43+
if: ${{ github.ref_type == 'tag' }}
44+
with:
45+
name: mayastor
46+
repository: ${{ github.repository_owner }}/charts
47+
tag: ${{ env.CHART_VERSION }}
48+
path: ./chart
49+
registry: ghcr.io
50+
registry_username: ${{ github.actor }}
51+
registry_password: ${{ secrets.GITHUB_TOKEN }}
52+
update_dependencies: 'false'
4053

4154
update-chart:
4255
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)