Skip to content

Commit 988d87b

Browse files
ci: fix nightly regression and add Helm OCI publish (#6)
* ci: fix nightly regression and add Helm OCI publish workflow - Pin helm-unittest plugin to v0.5.2 (fixes platformHooks incompatibility with Helm 3.14) - Add helm-publish.yml workflow to publish chart to GHCR on chart-v* tags * docs: add Helm CI and license badges to README --------- Co-authored-by: Larsen Close <lclose@quovis.io>
1 parent faa333b commit 988d87b

File tree

3 files changed

+45
-1
lines changed

3 files changed

+45
-1
lines changed

.github/workflows/helm-publish.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Helm OCI Publish
2+
3+
on:
4+
push:
5+
tags:
6+
- "chart-v*"
7+
8+
permissions:
9+
packages: write
10+
contents: read
11+
12+
env:
13+
REGISTRY: ghcr.io
14+
CHART_PATH: helm/disentangle
15+
16+
jobs:
17+
publish:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- uses: azure/setup-helm@v4
23+
with:
24+
version: v3.14.0
25+
26+
- name: Login to GHCR
27+
run: echo "${{ secrets.GITHUB_TOKEN }}" | helm registry login ${{ env.REGISTRY }} --username ${{ github.actor }} --password-stdin
28+
29+
- name: Package chart
30+
run: helm package ${{ env.CHART_PATH }}
31+
32+
- name: Push to OCI registry
33+
run: |
34+
PKG=$(ls disentangle-*.tgz)
35+
helm push "${PKG}" oci://${{ env.REGISTRY }}/disentangle-network/charts
36+
37+
- name: Verify pullable
38+
run: |
39+
VERSION=$(grep '^version:' ${{ env.CHART_PATH }}/Chart.yaml | awk '{print $2}')
40+
helm pull oci://${{ env.REGISTRY }}/disentangle-network/charts/disentangle --version "${VERSION}"
41+
echo "Chart published and verified: disentangle:${VERSION}"

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
with:
3939
version: v3.14.0
4040
- name: Install helm-unittest
41-
run: helm plugin install https://github.com/helm-unittest/helm-unittest
41+
run: helm plugin install https://github.com/helm-unittest/helm-unittest --version v0.5.2
4242
- name: Run unit tests
4343
run: helm unittest helm/disentangle/
4444

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Disentangle Deploy
22

3+
[![Helm CI](https://github.com/disentangle-network/deploy/actions/workflows/helm-ci.yml/badge.svg)](https://github.com/disentangle-network/deploy/actions/workflows/helm-ci.yml)
4+
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)
5+
36
Single-config cluster deployment for [Disentangle Protocol](https://github.com/disentangle-network/protocol) networks.
47

58
## Overview

0 commit comments

Comments
 (0)